Support the PackageReference NuGet restoration option in Cloud Service Projects
Currently, if an Azure Worker role uses the PackageReference Nuget option, or references a library that does, any Nuget packages that are built against the .Net Standard will have the incorrect version of the assembly copied to the binary folder upon publishing or debugging, causing a System.BadImageFormatException when the offending library is first loaded. (For further details and a reproduction, please see https://developercommunity.visualstudio.com/content/problem/280697/cloud-service-project-uses-incorrect-net-standard.html)
This is preventing the consumption of .Net Standard class libraries with any NuGet references by Cloud Service Projects, as these implicitly use the PackageReference option by default.
Tom Robinson commented