[xbuild] Define VisualStudioVersion, since F# projects can depend on it
authorMichael Hutchinson <m.j.hutchinson@gmail.com>
Mon, 27 Jan 2014 21:58:49 +0000 (16:58 -0500)
committerMichael Hutchinson <m.j.hutchinson@gmail.com>
Mon, 27 Jan 2014 22:00:08 +0000 (17:00 -0500)
mcs/tools/xbuild/data/12.0/Microsoft.Common.targets
mcs/tools/xbuild/data/4.0/Microsoft.Common.targets

index a03857349943f9a2b90d4fd74b717d62b72a8c26..59eb06993dfe5fa3b3ff6e6b8601b240415efc5a 100644 (file)
                <ProjectDir Condition="'$(ProjectDir)' == ''">$(MSBuildProjectDirectory)\</ProjectDir>
        </PropertyGroup>
 
+       <!-- MSBuild defines this even outside of VS, and F# projects depend on it -->
+       <PropertyGroup>
+               <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">12.0</VisualStudioVersion>
+       </PropertyGroup>
+
        <PropertyGroup>
                <AssemblyName Condition="'$(AssemblyName)' == ''">$(MSBuildProjectName)</AssemblyName>
                <OutputPath Condition="'$(OutputPath)' != '' and !HasTrailingSlash('$(OutputPath)')">$(OutputPath)\</OutputPath>
index a03857349943f9a2b90d4fd74b717d62b72a8c26..c5e9588e091ae808fd8034c276605af0b39f8831 100644 (file)
                <ProjectDir Condition="'$(ProjectDir)' == ''">$(MSBuildProjectDirectory)\</ProjectDir>
        </PropertyGroup>
 
+       <!-- MSBuild defines this even outside of VS, and F# projects depend on it -->
+       <PropertyGroup>
+               <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
+       </PropertyGroup>
+
        <PropertyGroup>
                <AssemblyName Condition="'$(AssemblyName)' == ''">$(MSBuildProjectName)</AssemblyName>
                <OutputPath Condition="'$(OutputPath)' != '' and !HasTrailingSlash('$(OutputPath)')">$(OutputPath)\</OutputPath>