c# - Wrong version of System.Runtime being packaged -
we have written service deployed azure. consists of dll "worker role" class, , azure cloud service project, shown below:
the build steps are:
- build ccproj in "release" configuration.
- run nuget "spec", "pack" .nupkg file
- deploy .nupkg file azure cloud service
this has been working fine while, until upgraded .net 4.6.2 , upgraded several other references, including system.runtime (now v4.3.1). now, despite fact have (probably unnecessarily) added nuget reference every single project in solution, pointing system.runtime 4.3.1, version of system.runtime.dll gets deployed older version, resulting in dll hell on service, fails run. if manually copy on correct version of system.runtime.dll, works again.
where incorrect version of system.runtime coming from? , how convince offending software/hardware use correct version?
update: trail getting warmer. on development machine, bin
folder of eventworker project contains correct version of system.runtime.dll. but... eventprocessor\obj\debug\eventworker
folder contains old version! deleted obj
folder , recompiled project - , old version of dll appears again.
where coming from, , how fix?
you have right idea in terms of hunting down offending dll. have dependent dll's using wrong version? also, when run locally give dll conflict warning in errors window, allowing identify where? take @ config file , see if have reference dll version in redirects section, update or create new 1 point @ latest version.
Comments
Post a Comment