I have created an F# ASP.NET project in .Net Core by using dotnet new mvc --lang F#
.
That works fine but in that setting I don't get built in integration with IIS Express. I have switched over to Visual Studio 2017 because IIS Express debugging is built in and when I try to create a new project the ASP.NET Core Web Application template only shows up under C#. I have installed the F# language support option for Visual Studio 2017 but that did not help. The F# templates do not include ASP.NET Core Web Application.
Is there another option that will enable the creation of ASP.NET Core Web Application with F# in Visual Studio 2017?
Unfortunately, Visual Studio 2017 doesn't yet support F# .NET Core apps. Last I heard, this was targeted for version 15.3, which is still in preview, but I haven't tried out the preview version yet.
The Visual F# Tools project system does not support F# on .NET Core
- The new .fsproj file does not load in VS
- No project system support for package load, cross-platform build, or publish
- No .NET Core templates in-box
- This means you can create something with the .NET CLI and have it fail to load in Visual Studio
Currently there are a number of dotnetcore templates available for F# developers to start with. You can generate the templates and use them in visual studio in the same way you would any other projects\\solutions.
I've had a couple issues with a few on my mac but, they seem to work well enough on windows. https://github.com/dotnet/templating/wiki/Available-templates-for-dotnet-new
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.