F #, Visual Studio 2017 and dotnet new

To create a .NET class library from the command line, you can run a script

dotnet new classlib

Do this in a clean folder and create a file csprojthat can then be opened in Visual Studio 2017.

However run the script

dotnet new classlib -lang f#

in a clean folder, and the fsproj file, which is subsequently created, cannot be opened in Visual Studio 2017. The error message reads

The imported project "C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Professional \ MSBuild \ Sdks \ FSharp.NET.Sdk \ Sdk \ Sdk.props" could not be found. Verify that the path in the declaration is correct and that the file exists on disk.

I was looking for an explanation of this problem, and it seems that there is work that can fix it, but I wondered if there are any add-ons that I can install to start this work immediately.

+4
source share
1 answer

Recent pre-release versions of Visual Studio and .NET Core support loading .fsproj projects, apparently.

See this comment on the GitHub issue:

Closing it now, since these projects are loading using 15.3. Current way to use them:

(,.NET SDK VS. , .NET Core 2.0 Preview 3 Preview VS 2007).

+7

Source: https://habr.com/ru/post/1682318/


All Articles