Skip to content

Commit 2843c4f

Browse files
committed
adjust VS2010 project file
1 parent f421906 commit 2843c4f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

tests/projects/Sample_VS2010_FSharp_ConsoleApp_net35/SampleVisualStudio2010FSharpConsoleApp/SampleVisualStudio2010FSharpConsoleApp.fsproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,15 @@
4444
<ItemGroup>
4545
<Compile Include="Program.fs" />
4646
</ItemGroup>
47+
<!--
48+
These lines in VS2010 projects need to be adjusted to compile with F# 4.1 on Mono/Linux/Mac, because Microsoft.Build.Tasks.v4.0.dll is no longer in MSBuildBinPath (?)
49+
4750
<Import Project="$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets" Condition="!Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
4851
<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition=" Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
49-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
52+
-->
53+
<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" />
54+
55+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5056
Other similar extension points exist, see Microsoft.Common.targets.
5157
<Target Name="BeforeBuild">
5258
</Target>

tests/projects/Sample_VS2010_FSharp_ConsoleApp_net40/SampleVisualStudio2010FSharpConsoleApp/SampleVisualStudio2010FSharpConsoleApp.fsproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@
4848
<ItemGroup>
4949
<Compile Include="Program.fs" />
5050
</ItemGroup>
51+
<!--
52+
These lines in VS2010 projects need to be adjusted to compile with F# 4.1 on Mono/Linux/Mac, because Microsoft.Build.Tasks.v4.0.dll is no longer in MSBuildBinPath (?)
53+
5154
<Import Project="$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets" Condition="!Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
5255
<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition=" Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
56+
-->
57+
<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" />
58+
5359
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5460
Other similar extension points exist, see Microsoft.Common.targets.
5561
<Target Name="BeforeBuild">

0 commit comments

Comments
 (0)