Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
dotnet new classlib doesn't allow to specify a different framework (-f) when using F# (-lang F#) on Ubuntu #103
When I try to create a class lib with dotnet core and F# on Ubuntu (Linux Mint), it looks like I cannot create the lib with a different Fx than the default while I can do it with C#.
or like this
I always get an error sayng:
While if I write like this:
All works fine (but it will be a C# proj).
If I want to still use -lang F# option, I can remove the -f option and create with the default fx (.Net Standard 1.6) and then manually change the generated .fsproj with these lines:
This is my machine data:
@palutz hi, yes
It's fixed with dotnet/templating@a3e41f9#diff-a030b9cbe845f5324f44c81483fd56fa who support any
As you said, workaround is to update the fsproj after is generated.
Closing because can be fixed only with a new release of dotnet/cli (the common templates are bundled in dotnet cli), and next one will contains updated templates anyway.