Azure的套餐甚至包括与本地副本组链接DLL项目 [英] Azure Package Not including linked project dll even with copy local set

查看:206
本文介绍了Azure的套餐甚至包括与本地副本组链接DLL项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与它的4个项目的Azure的解决方案。 (VS2012在Windows 8,Azure工具1.8)

I have an Azure solution with 4 projects in it. (VS2012 on Windows 8, Azure Tools 1.8)


  1. 与普通code
  2. 核心项目
  3. Web角色前端

  4. 对于维护数据服务角色(从SQL Azure的DB)

  5. 计划任务工作者角色

所有项目的角色必须与本地复制=真...标准的东西的核心项目的引用。

All role projects have a reference to the core project with copy local = true... standard stuff.

Web角色和辅助角色做工精细,但我的服务作用不断被陷在初始化 - 启动 - 回收循环。
当我浏览到该服务,我得到'能注意加载文件或程序'FileNotFoundException异常。
果然,RDP到服务器和DLL文件丢失。

The web role and the worker role work fine, but my service role keeps getting stuck in the Initializing - Starting - Recycling loop. When I browse to the service I get the 'Could note load file or assembly' FileNotFoundException. Sure enough, RDP to the server and the dll is missing.

在有包文件一看本地,其他角色包括缺少DLL,而不是服务的作用。

Having a look in the package files locally, the other roles include the missing dll, but not the service role.

如果我我们VS发布服务角色(而不是Azure的发布)到本地文件系统,核心DLL的在内,证明了VS设置为复制本地正确的。

If I us VS to publish the service role (not azure publish) to local file system, the core dll is included, proving that the VS settings are correct for the copy local.

是否有从内部VS任何其他方式来影响被添加到Azure的部署包中的文件,或者是有一个简单的方法来脚本包的创建,而无需使用VS?

Is there any other way from within VS to influence the files that are added to the Azure deployment package, or is there a simple way to script the creation of the package without using VS?

推荐答案

正如我在评论中写道我有相同的情况下,你(Windows 7和8,VS 2012的Azure SDK 1.8)。的复制本地的设置为的真正的,但是当我打开*的 .cspkg 的包,引用的组件缺少的为approot 的文件夹。我所做的,我创建新的工作者角色项目,并复制从旧的code。现在都是组件包括在内。

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.

更新:
上述解决方案在我的情况是不是真的有必要。由我真正的问题是,我的Web角色不慎引用我的工作者角色装配。当我删除这是不必要的参考,辅助角色得到了在包中的所有组件。这种现象是,在我看来,马车。

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.

这篇关于Azure的套餐甚至包括与本地副本组链接DLL项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆