You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I build worker project then DLL from "runtime" section is properly copied to output folder, but when I build cloud service project, then DLL from "compile" section is copied to obj and csx folder of cloud project, so cloud service package contains wrong DLL as well. As a result I receive exception when run project in azure cloud emulator or on real azure cloud service:
could not load file or assembly 'microsoft.bcl.asyncinterfaces, version=1.0.0.0, culture=neutral, publickeytoken=cc7b13ffcd2ddd51' or one of its dependencies. reference assemblies should not be loaded for execution
The text was updated successfully, but these errors were encountered:
alexeizalesski
changed the title
Azure Cloud Service Worker Role compile assemblies copied from buget package instead of runtime
Azure Cloud Service Worker Role compile assemblies copied from nuget package instead of runtime
May 5, 2020
alexeizalesski
changed the title
Azure Cloud Service Worker Role compile assemblies copied from nuget package instead of runtime
Azure Cloud Service Worker Role "compile" assemblies copied from nuget package instead of |runtime" version
May 5, 2020
alexeizalesski
changed the title
Azure Cloud Service Worker Role "compile" assemblies copied from nuget package instead of |runtime" version
Azure Cloud Service Worker Role "compile" assemblies copied from nuget package instead of "runtime" version
May 5, 2020
I'm not sure whether this is a bug in NuGet handling transitive assets or in the cloud service SDK. Do you have a repro project you can share? That could help route.
If you start CloudService project you will see an exception.
And as I mentioned ealrier at _AzureCloudService.Sample\WorkerRole.Sample\bin\Debug_ you may find proper runtime DLL, but here _AzureCloudService.Sample\AzureCloudService.Sample\csx\Debug\roles\WorkerRole.Sample\approot_ you will find "referrence assembly" DLL which is not working.
I have azure cloud service project with worker role.
I have nuget package referenced, here is what I see in project.assets.json of my worker project:
"Microsoft.Bcl.AsyncInterfaces/1.1.0": { "type": "package", "dependencies": { "System.Threading.Tasks.Extensions": "4.5.2" }, "frameworkAssemblies": [ "mscorlib" ], "compile": { "ref/net461/Microsoft.Bcl.AsyncInterfaces.dll": {} }, "runtime": { "lib/net461/Microsoft.Bcl.AsyncInterfaces.dll": {} } },
When I build worker project then DLL from "runtime" section is properly copied to output folder, but when I build cloud service project, then DLL from "compile" section is copied to obj and csx folder of cloud project, so cloud service package contains wrong DLL as well. As a result I receive exception when run project in azure cloud emulator or on real azure cloud service:
could not load file or assembly 'microsoft.bcl.asyncinterfaces, version=1.0.0.0, culture=neutral, publickeytoken=cc7b13ffcd2ddd51' or one of its dependencies. reference assemblies should not be loaded for execution
The text was updated successfully, but these errors were encountered: