为什么有些Azure的特定组件没有在Azure实例present? [英] Why are some Azure-specific assemblies not present on Azure instances?

查看:116
本文介绍了为什么有些Azure的特定组件没有在Azure实例present?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是Azure角色可能会需要一套Azure的具体.NET程序集像 Microsoft.WindowsAzure.ServiceRuntime Microsoft.WindowsAzure.StorageClient 。原来,后者是<一个href="http://blog.arunstephens.com/2011/01/16/microsoft-windowsazure-storageclient-is-not-actually-on-azure/"在Azure实例相对=nofollow>不是在GAC 的,所以我必须这样它进入了服务包,并部署到Azure在Visual Studio项目设置复制本地到真。如果我不这样做,大会不存在的,缺失的依赖将prevent我的角色无法启动。

An Azure role will likely need a set of Azure-specific .NET assemblies like Microsoft.WindowsAzure.ServiceRuntime and Microsoft.WindowsAzure.StorageClient. Turns out the latter is not in the GAC on Azure instances and so I have to set "Copy Local" to "True" in the Visual Studio project so that it gets into the service package and deployed to Azure. If I don't do that the assembly is not there and the missing dependency will prevent my role from starting.

这没有任何意义,我。要么它只是一个错误或我没有得到大画面。

This doesn't make any sense to me. Either it's just a bug or I don't get the big picture.

有一个很好的理由的关键组件不会是present在Azure的情况下,GAC,我必须去实施我的服务包?

Is there a good reason why the key assemblies would not be present in Azure instances GAC and I have to carry them with my service package?

推荐答案

这些键Azure的程序集是.NET Framework的不是一部分 - 这就是为什么他们是不是在GAC。也许在未来,他们将被添加到.NET Framework。

These key Azure assemblies aren't a part of the .NET Framework - that's why they are not in the GAC. Maybe in the future they will be added to the .NET Framework.

Azure是不是专用于只运行.NET code。 人们将其用于其他平台如Java,PHP,Node.js的,蟒蛇等,这是没有意义添加特定于在VM角色实例.NET的Azure实现组件。

Azure is not dedicated to running only .NET code. People use it for other platforms such as Java, PHP, node.js, python, etc. It wouldn't make sense to add assemblies that are specific to .NET Azure implementations in the VM Role Instances.

是 - 这也是一个烦恼,当我第一次开始在Azure上,但同样是如此,如果你会发表这篇导通premise到没有在Azure SDK

Yes - this was also an annoyance when I first started on Azure, but the same is true if you would have published this on-premise to a machine without the Azure SDK.

这篇关于为什么有些Azure的特定组件没有在Azure实例present?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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