We have created a service that will be deployed to Azure. This consists of a DLL with the Worker Role class and an Azure Cloud Service project, as shown below: 
Build steps:
- Create ccproj in the "Release" configuration.
- Run NuGet "spec", then "pack" to get the .nupkg file.
- Deploy the .nupkg file to the Azure Cloud service.
This worked fine until we upgraded to .NET 4.6.2, and also updated several other links, including System.Runtime (now v4.3.1). Now, despite the fact that we (perhaps unnecessarily) added a NuGet link to each individual project in the solution, pointing to System.Runtime 4.3.1, the version of System.Runtime.dll that is being deployed is an older version, as a result bringing in a dll ad on a service that then fails to start. If we manually copy the correct version of System.Runtime.dll, everything will work again.
Where is this the wrong version of System.Runtime? And how do we convince the villainous software / hardware to use the correct version?
UPDATE: The trail is getting warmer. On my development machine, the bin folder of the EventWorker project contains the correct version of System.Runtime.dll. But ... the folder EventProcessor\obj\debug\EventWorker contains the old version! I deleted the obj folder and recompiled the project - and the old version of the DLL appears again.
Where does it come from and how to fix it?
c # nuget azure azure-cloud-services
Shaul Behr Nov 13 '16 at 10:23 2016-11-13 10:23
source share