无法解析Microsoft.WindowsAzure.StorageClient [英] Cannot resolve Microsoft.WindowsAzure.StorageClient

查看:298
本文介绍了无法解析Microsoft.WindowsAzure.StorageClient的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Azure的网站设置通过git的部署,但是当我这样做,我得到一个编译器错误,指出:


D:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\ Microsoft.Common.targets(1360,9):警告MSB3245:无法解析此引用。无法找到程序集​​Microsoft.WindowsAzure.StorageClient,版本= 1.7.0.0,文化=中性公钥= 31bf3856ad364e35,的ProcessorArchitecture = MSIL。检查以确保存在于磁盘上的装配。如果你的code需要此引用,则可能出现编译错误。

这是在一个单独的项目比我的MVC项目,它具有Microsoft.WindowsAzure.StorageClient作为参考和属性中我也有它设置为CopyLocal

有什么想法?


解决方案

即使你有复制本地属性设置为true你还需要确保在部署应用程序到Windows Azure,所有文件部署。我认为最关键的是,当你运行git的承诺肯定列表中的所有这些将被推的文件。

例如,当我跑的 git的承诺-m初始提交我可以确认低于Windows Azure的存储相关引用如下包括:

之后,当你将调用混帐推蔚蓝的主这些额外的引用都将肯定会被部署。

我的Git测试过程中的所有步骤,我在我的博客中记录<一个href=\"http://blogs.msdn.com/b/avkashchauhan/archive/2012/06/19/using-git-to-deploy-an-asp-net-website-shows-windows-azure-blob-storage-list-at-windows-azure-websites.aspx\"相对=nofollow>使用Git部署一个ASP.NET网站显示在Windows Azure的网站的Windows Azure Blob存储列表。

I have a Azure-Web-Site setup to deploy via git, however when I do, I'm getting a compiler error stating:

D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.WindowsAzure.StorageClient, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

This is on a seperate project than my MVC project that does have Microsoft.WindowsAzure.StorageClient as a reference and within the properties I do have it set to CopyLocal

Any thoughts?

解决方案

Even when you have "Copy Local" property set to "true" you still need to be sure that when you deployed your application to Windows Azure, all the files are deployed. I believe the key is that when you run "git commit" be sure the list all the files which will be pushed.

For example when I ran git commit -m "initial commit" I can verify below that Windows Azure Storage related references are included as below:

After that when you will call git push azure master these additional references will sure to be deployed.

All my steps during my Git test are documented in my blog Using Git to deploy an ASP.NET website shows Windows Azure Blob Storage list at Windows Azure Websites.

这篇关于无法解析Microsoft.WindowsAzure.StorageClient的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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