C# Microsoft.WindowsAzure.ServiceRuntime 的 NuGet 包在哪里?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11252486/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where is the NuGet package for Microsoft.WindowsAzure.ServiceRuntime?
提问by Allen Rice
We had previously been referring to our Windows Azure libraries via the SDK and I noticed that they have NuGet packages for them now. This is obviously way better, so I'm swapping out all of those references for the NuGet packages.
我们以前一直通过 SDK 引用我们的 Windows Azure 库,我注意到他们现在有NuGet 包。这显然更好,所以我将所有这些引用换成 NuGet 包。
However, I can't find a NuGet package for Microsoft.WindowsAzure.ServiceRuntime.dll that contains classes such as RoleEnvironment, etc.
但是,我找不到包含RoleEnvironment等类的 Microsoft.WindowsAzure.ServiceRuntime.dll 的 NuGet 包。
Are we supposed to be referencing this dll from the SDK installation and not a nuget package? That seems extremely odd. Am I just not seeing the package for this assembly?
我们是否应该从 SDK 安装而不是 nuget 包中引用此 dll?这似乎非常奇怪。我只是没有看到这个程序集的包吗?
I've now installed all of the "windowsazureofficial" tagged packages (just temporarily) and none of them seem to have the correct reference!
我现在已经安装了所有“windowsazureofficial”标记的包(只是暂时的),但似乎没有一个有正确的参考!
采纳答案by AvkashChauhan
The latest Windows Azure SDK is 1.7so If you need updated Microsoft.WindowsAzure.ServiceRuntime you would have to manually install the SDK in your machine and add those references to your role.
最新的Windows Azure SDK 是 1.7,因此如果您需要更新 Microsoft.WindowsAzure.ServiceRuntime,您必须在您的机器中手动安装 SDK 并将这些引用添加到您的角色中。
回答by Kyle Trauberman
There doesn't appear to be one at this time, but I found this: AnglicanGeek's Unofficial Windows Azure Service Runtime 1.6
目前似乎没有,但我发现了这个: AnglicanGeek's Unofficial Windows Azure Service Runtime 1.6
回答by Allen Rice
Its likely that they don't want to distribute the core parts of the SDK so you still have a requirement to install the actual SDK. I messaged (via nuget) the owners of the "windowsazureofficial" nuget packages and asked for feedback and I'll update this if I hear back.
很可能他们不想分发 SDK 的核心部分,因此您仍然需要安装实际的 SDK。我向(通过 nuget)“windowsazureofficial”nuget 软件包的所有者发送了消息,并要求提供反馈,如果我收到回复,我会更新此信息。
As for upgrading, first get the sdkand then follow the upgrade instructions here. The references will automatically be updated and it will convert local references to nuget package references as well, when it can.
至于升级,先拿到sdk,然后按照这里的升级说明进行操作。引用将自动更新,并且在可能的情况下,它也会将本地引用转换为 nuget 包引用。
回答by Tim Lovell-Smith
You need to install the particular version of the Azure SDK which you want to build with.
您需要安装要用于构建的特定版本的 Azure SDK。
Actually you only need to install certain parts of it including the reference libraries(there are multiple parts of the SDK you can download separately) - and it depends which assemblies you are looking for.
实际上,您只需要安装其中的某些部分,包括参考库(SDK 的多个部分可以单独下载)——这取决于您要查找的程序集。
e.g. for 2.2 or 2.3 SDK and Microsoft.WindowsAzure.ServiceRuntimeor Microsoft.WindowsAzure.Diagnosticsassemblies, you need the 'WindowsAzureAuthoringTools' MSI installer - not the 'WindowsAzureLibsForNet-x64' MSI, which installs some of the other reference libraries.
例如,对于 2.2 或 2.3 SDK 和Microsoft.WindowsAzure.ServiceRuntime或Microsoft.WindowsAzure.Diagnostics程序集,您需要“WindowsAzureAuthoringTools”MSI 安装程序 - 而不是安装其他一些参考库的“WindowsAzureLibsForNet-x64”MSI。
回答by d.danailov
List with all Azure Packages: Azure SDK for .NET
列出所有 Azure 包:用于 .NET 的 Azure SDK
Note: Before downloading the SDK files, review the installation steps to understand the process and dependencies involved in installing the SDK. For SDK 1.7 and later releases, use the installation steps included with the Manual Installers links below. For SDK 1.6 and earlier, follow the installation steps listed later on this page.
注意:在下载 SDK 文件之前,请查看安装步骤以了解安装 SDK 所涉及的过程和依赖项。对于 SDK 1.7 和更高版本,请使用下面手动安装程序链接中包含的安装步骤。对于 SDK 1.6 及更早版本,请按照本页后面列出的安装步骤进行操作。
回答by d.danailov
I had a similar problem.
我有一个类似的问题。
Option 1)
选项1)
I added a dlllibray in my Google Drive Storage: Microsoft.WindowsAzure.CloudDrive
我dll在 Google Drive Storage 中添加了一个库:Microsoft.WindowsAzure.CloudDrive
In this case you should download and create a "static" link.
在这种情况下,您应该下载并创建一个“静态”链接。
Option 2)
选项 2)
and I found a NuGet Package:
我找到了一个 NuGet 包:
PM> Install-Package AzureSDK2.2DLLs
PM> Install-Package AzureSDK2.2DLLs
If you need more information, please contact me.
如果您需要更多信息,请与我联系。
回答by David
回答by catfood
It's now a regular package on NuGet:
它现在是 NuGet 上的常规包:
Install-Package Microsoft.WindowsAzure.SDK
Install-Package Microsoft.WindowsAzure.SDK
回答by SliverNinja - MSFT
You can find Microsoft.WindowsAzure.ServiceRuntime.dlllocated in the path:
您可以Microsoft.WindowsAzure.ServiceRuntime.dll在路径中找到:
Program Files\Microsoft SDKs\Windows Azure\.NET SDK\<sdk_version>\bin\runtimes\base


