Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 20035 [details]
Ship the FSharp.NET.Sdk MSBuild targets with mono needed to compile F# .NET Core projects, like the one attached, from the command line with msbuild.
Where should this package be taken from, and which version? https://www.nuget.org/packages/FSharp.NET.Sdk/1.0.0 ?
Created attachment 20188 [details]
FSharp sdk targets
No. On NuGet.org that is the package used at build time. The Sdk files that ship with .NET Core SDK are pretty minimal. I have attached the FSharp targets that ship with .NET Core SDK 1.0.1 that was released today.
The FSharp.NET.Sdk NuGet package assumes that dotnet is available in a path relative to where the Sdks are available. Version 1.0.0 of this NuGet package used the following path where it assumed dotnet cli was available:
Version 1.0.1 of the FSharp.NET.Sdk NuGet package assumes dotnet is available at:
Since Mono will not ship dotnet cli then we cannot ship the FSharp Sdk .targets with Mono.
Possibly we can set the DontRunFscWithDotnet property to true in the Sdk.props we ship with Mono. This would prevent the dotnet cli from being used.
I ran a simple test setting DontRunFscWithDotnet to true in a F# .NET Core console project and it did not use dotnet to compile but instead used fsc.exe from the fsharp.compiler.tools NuGet package. However that seemed to fail with a build error " The "SkipCompilerExecution" parameter is not supported by the "Fsc" task."
I have added the F# sdk files from comment #2 . But I still want to confirm with what VS is packaging.
I also modified it to use mono's f# compiler and to use mono instead of dotnet. With that I can build the `FSharpConsole` project, but with the reference to nuget package `FSharp.NET.Sdk` changed to `1.0.1` .
Visual Studio 2017 does not currently package/ship F# sdk files.