这里SDK版本不是.NetCore版本,比如.NetCore3.1,SDK用的版本3.1.302
dotnet new global.json --sdk-version <SDK版本号>
参考:https://www.cnblogs.com/stulzq/p/9503121.html