Azure Package Not including linked project dll even with copy local set

两盒软妹~` 提交于 2019-11-30 06:39:55

As I wrote in comment I have same situation as you (Windows 7 and 8, VS 2012, Azure SDK 1.8). Copy Local is set to true but when I open *.cspkg package, referenced assemblies are missing in approot folder. What I did I created new Worker Role project and copied the code from old one. Now are all assemblies included.

UPDATE: The solution described above was not really necessary in my case. The real problem by me was that my Web Role accidentally referenced my Worker Role assembly. When I removed this unnecessary reference, the Worker Role got the all assemblies in package. This behaviour is, on my opinion, buggy.

I can confirm what Anton describes in his answer in the paragraph starting with "UPDATE":

I had a class library project called "Utils", a "WorkerRole" and a "WebRole" project. Both WorkerRole and WebRole were referencing Utils. In addition, WebRole was referencing WorkerRole - as latter one contained some classes which were used as Service Bus messages.

The result was that Utils.dll was not included in the .cspkg file for the cloud service, and there was no error message in Visual Studio. After putting the message classes in project Utils and removing the reference WebRole->WorkerRole everything was fine again.

Seems to be a bug indeed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!