0

Currently i am trying to build an autogenerating client on every time i release a new api.

I've got this running i can create the project and generate files from autorest.exe and everything works fine on my machine.

However when i try to replicate the same process on the buildserver i build my sln, and once i pack i get this error:

[pack] 'Microsoft.Rest.ClientRuntime' already has a dependency defined for 'Newtonsoft.Json'.

I have added this to my csproj file to pick up on the generated files, and this works fine on my local machine.

<Compile Include="Generated\*.cs" />
<Compile Include="Generated\Models\*.cs" />

I also tried including referenced projects on the build server like so

-IncludeReferencedProjects

After a couple of days im kind of stuck here, i have been having trouble finding docs on how to actually build the autorest generated client code, if anyone knows of some please share :)

Any help appreciated :)

4

2 に答える 2

0

ここでの答えは、teamcity の nuget を 3.2.0 から 3.4.3 に更新することでした。その後、ソリューションはファイルをビルドして実行します。 Microsoft.rest.clientruntime 内の newtonsoft は、更新すると消えてしまいました。

于 2016-07-04T19:48:05.163 に答える
0

何時間も検索した結果、失敗した nuget.exe のコピーに対して「nuget update -self」を実行することが答えでした。

于 2016-07-12T09:59:05.953 に答える