autorest


Autorest client generation multiple references of newtonsoft


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 :)
The answer here was to update nuget on teamcity from 3.2.0 to 3.4.3 then the solution would build and run the files, i am still not sure what changed since this couldnt build, but somehow with 3.2.0 i had 2 references to newtonsoft within Microsoft.rest.clientruntime, when i updated it went away.
After many hours of searching, the answer was to run 'nuget update -self' on the failing copy of nuget.exe.

Related Links

Autorest client generation multiple references of newtonsoft

Categories

HOME
ibm-bluemix
google-chrome-extension
coq
fluentd
mfc
google-api-php-client
vmware
read-eval-print-loop
xmpp
frameworks
retrofit
django-imagekit
uber-api
applepay
communication
spring-kafka
google-cloud-ml
iron-router
ghc
ef-migrations
connection-string
google-pagespeed
amazonsellercentral
orleans
tibco-mdm
format-specifiers
underflow
poltergeist
pingfederate
fgetcsv
nhapi
spring-mybatis
maquette
opentype
primitive
quote
unboundid
nat
nouislider
react-chartjs
http-status-code-503
titanium-mobile
siesta-swift
android-nestedscrollview
wixsharp
io-redirection
bitbucket-pipelines
xcode-extension
libvpx
abstract-class
greenrobot-eventbus
quadratic-programming
isbn
.net-4.6.2
long-polling
upstart
integrity
pdfclown
sqldf
grails-tomcat-plugin
azure-sdk
database-optimization
websitepanel
holder.js
testng-dataprovider
yaws
rhino-servicebus
spidermonkey
rgeo
embedded-code
emailrelay
php-ci
processmodel
system32
oberon
web-controls
jsapi
device-orientation
umbraco6
dia
nsbutton
bitcoinj
google-reader
aapt
resty-gwt
openlaszlo
xsockets.net
cdc
google-cloud-save
eclipse-memory-analyzer
seed
spring-validator
type-equivalence
drools-planner
referrer
cisco-jtapi
newtonscript
stage
coercion
mysql-error-1005
icanhaz.js
bespin
photoshop-cs4
boost-smart-ptr
port-number

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App