更新时间:2022-05-05 23:03:55
I had a similar error (see this question: Swagger-codegen: error building Pet Store example for .NET Core)
对我来说,解决方法是运行dotnet migrate
,该更新将项目更新为使用.csproj
并将.xproj
和project.json
移开.
The fix for me was to run dotnet migrate
which updates the project to use a .csproj
and moves the .xproj
and project.json
out of the way.
此处的更多信息: https://docs. microsoft.com/en-us/dotnet/core/migration/#dotnet-migrate