dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.87k stars 781 forks source link

Error on creating F# project #15295

Closed ghost closed 1 year ago

ghost commented 1 year ago

Problem encountered on https://dotnet.microsoft.com/en-us/learn/languages/fsharp-hello-world-tutorial/create Operating System: macos

Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Hello

I received the below error message when running the below command (I tried with "F" also) dotnet new console -lang F# -o MyFSharpApp -f net7.0

ERROR MESSAGE: Couldn't find an installed template that matches the input, searching online for one that does... Error: Invalid parameter(s): -f net7.0 'net7.0' is not a valid value for -f (Framework).

Thanks for the help.

0101 commented 1 year ago

@tushkalusa did you successfully complete the previous step of the tutorial, which has you install .NET 7 SDK?

If yes please post here the output of dotnet --info command.

vzarytovskii commented 1 year ago

@baronfel probably should be moved to sdk if really an issue?

ghost commented 1 year ago

Thank you for the response. Sorry for the bother.

I had to force update my sim links and close my terminal window and then re-open, and everything was copacetic.

Apologies for the bother.

Thanks