Reputation: 487
I am trying to create an F# class library with target framework as .NET Standard 2.0. When I try to create a new project in Visual Studio 2017, I don't see any option to create a class library with target framework as .NET Standard 2.0 (attached screenshot)
When trying to create an F# project, I see a bunch of options to create projects in .NET framework or the option to create an ASP.NET Core web application (which uses .NET Core).
Can someone help me how to create an F# library with target framework as .NET Standard 2.0?
Upvotes: 2
Views: 1094
Reputation: 140
You don't normally directly target .NET Standard when creating project, with class libraries being the exception. .NET Standard is a specification that the different .NET platforms implement. For example, if you were creating a new asp.net project that targets .NET Core, you would need to target .Net Core 2.0 in order to indirectly target .NET Standard 2.0.
The following link explains this further and also shows the version of .NET Standard supported by each .Net platform:
https://learn.microsoft.com/en-us/dotnet/standard/net-standard
When creating class libraries, you can choose to directly target .NET Standard by following these steps (Visual Studio 2017):
Upvotes: 4