Dotnet 'new' command not working with Framework 4.5?

Viewed 439

I'm trying to create a 4.5 framework Class Library project with dotnet new command as following:

dotnet new classlib -lang C# -f net45 -o TestProject

Error: Invalid Parameters: -f net45 "net45" is not a valid value for -f (Framework).

As seen in docs, it seems that .Net Framework is not supported:

-f Values: netcoreapp to create a .NET Core class library or netstandard to create a .NET Standard class library. The default is netstandard2.0.

Any idea on how to create a .Net Framework Class Library project via command line?

0 Answers
Related