sti*_*mms 3 azure azure-sdk-.net
我正在尝试使用Microsoft Azure SDK for .net version 0.9.5-preview.我基本上试图从自述文件中获取样本以列出位置和服务.但是我遇到了异常
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Microsoft.WindowsAzure.Management.dll
Additional information: Could not load file or assembly 'Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Run Code Online (Sandbox Code Playgroud)
有关此程序集的信息非常稀少.我发现了一些与PCL和Windows Phone相关的引用,但这只是一个使用完整4.5.1的控制台应用程序(虽然我也试过4.5).
我在谷歌存储库中找到了一个dll的副本,并将其扔到bin目录中确实使应用程序工作,但这似乎是一个壮观的黑客.我宁愿看到更好的解决方案.有任何想法吗?
packages.config内容是
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.WindowsAzure.Common" version="0.9.8-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management" version="0.9.5-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Compute" version="0.9.9-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Libraries" version="0.9.6-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Monitoring" version="0.9.2-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Scheduler" version="0.9.8-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.ServiceBus" version="0.9.3-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Sql" version="0.9.4-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Storage" version="0.9.3-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.VirtualNetworks" version="0.9.3-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.WebSites" version="0.9.3-preview" targetFramework="net45" />
</packages>
Run Code Online (Sandbox Code Playgroud)
Microsoft.Threading.Tasks你缺少的程序集在Microsoft.Bcl.AsyncNuGet包中.不知道为什么,但你的packages.config文件缺少一堆依赖程序集.您可能希望卸载并再次安装NuGet包以恢复依赖项.
| 归档时间: |
|
| 查看次数: |
3580 次 |
| 最近记录: |