Windows Azure 复制依赖程序集
我正在尝试将 Windows Azure 辅助角色部署到云。 VS2010 包含三个项目,如下所示:
- Cloud 项目
- Worker 角色项目
- Helper 类项目
我的 Helper 类项目使用对 WIF 程序集 (Microsoft.IdentityModel) 的引用。 Worker 角色项目引用了 Helper 类。我已将 Helper 和 WIF 程序集的“Copy Local”设置为“true”。当我打包并部署到云服务时,我收到一条警告:
项目“WorkerService”依赖于以下程序集:C:\Users\foo\Documents\Visual Studio 2010\Projects\HelloCloud\Helper \bin\Debug\Microsoft.IdentityModel.dll。该组件不在包装中。为了确保该角色启动,请将此程序集添加为对项目的引用,并将“复制本地”属性设置为 true。
我的辅助角色每次尝试运行时都会崩溃。查看 Intellitrace 日志后,我发现除 Microsoft.IdentityModel.dll 之外的所有程序集都被复制了。
如何将 Helper 类中所需的程序集复制到服务包中?
谢谢, 麦克风。
I'm trying to deploy a Windows Azure Worker Role to the cloud. The VS2010 contains three projects like so:
- Cloud project
- Worker role project
- Helper class project
My Helper class project uses a reference to a WIF assembly(Microsoft.IdentityModel). The Worker role project references the Helper class. I have set the Copy Local to true for both the Helper and the WIF assembly. When I package and deploy to my cloud service, I have a warning which says:
The project 'WorkerService' is dependent on the following assembly: C:\Users\foo\Documents\Visual Studio 2010\Projects\HelloCloud\Helper\bin\Debug\Microsoft.IdentityModel.dll. This assembly is not in the package. To make sure that the role starts, add this assembly as a reference to the project and set the Copy Local property to true.
My worker role keeps crashing every time it tries to run. Upon seeing the Intellitrace log, I see that all the assemblies except the Microsoft.IdentityModel.dll are copied over.
How can I get the required assembly in the Helper class to copy over to the service package?
Thanks,
Mike.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯...“复制本地”对我有用(我刚刚在 Web 角色上部署了一个简单的应用程序并且它有效)。不知道为什么工人角色没有。
我确实找到了这篇文章: http://msdn.microsoft.com/ en-us/library/windowsazure/hh403974.aspx
您可能想尝试一下。 (我没有)
mmm..."Copy Local" has worked for me (I just deployed a simple app on a Web Role and it worked). Not sure why the worker role doesn't.
I did find this article though: http://msdn.microsoft.com/en-us/library/windowsazure/hh403974.aspx
You might want to try that out. (I haven't)