2017-08-09 7 views
0

私はswagger-codegenを試して、.NETコアのPet Storeの例を生成しようとしています。私がいた走ったSwagger-codegen:エラー.NETストアのペットストアの例

/home/username/test/src/IO.Swagger/IO.Swagger.xproj(7,5): error MSB4019: 
The imported project "/usr/share/dotnet/sdk/1.0.4/Microsoft/VisualStudio/v14.0/ 
DotNet/Microsoft.DotNet.Props" 
was not found. Confirm that the path in the <Import> declaration is correct, 
and that the file exists on disk. 

正確な手順:

$ java -jar swagger-codegen-cli.jar generate -i 
    http://petstore.swagger.io/v2/swagger.json -l aspnetcore -o test/ 
$ cd test/ 
$ chmod +x build.sh 
$ ./build.sh 

バージョン:

$ dotnet --version 
1.0.4 
$ java -jar swagger-codegen-cli.jar version 
2.2.3 

それは、生成された.NETのように見える、私はプロジェクトをビルドしようとすると、私はこのエラーが表示しますコアプロジェクトは私が使用している.NETコアのバージョンと互換性がありません。生成されたプロジェクトを簡単に更新するにはどうすればいいですか?

答えて

関連する問題