I've been trying to find a way to create a ASP.NET Web Application with .Net Framework v4.7.2 using dotnet new. But so far I couldn't find anything.
I checked dotnet new -l and it isn't on the list. So I tried several things.
Using:
dotnet new web --framework net472 -n ProjectName
It doesn't work and gives:
Error: Invalid parameter(s):
--framework net472
'net472' is not a valid value for --framework (Framework).
Used:
dotnet new web --target-framework-override net472 -n ProjectName
It just goes to default and creates a ASP.NET Core project.
Is it actually possible?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…