Where is the NuGet package for Microsoft.WindowsAz

2020-06-06 07:47发布

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.

However, I can't find a NuGet package for Microsoft.WindowsAzure.ServiceRuntime.dll that contains classes such as RoleEnvironment, etc.

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?

I've now installed all of the "windowsazureofficial" tagged packages (just temporarily) and none of them seem to have the correct reference!

9条回答
来,给爷笑一个
2楼-- · 2020-06-06 08:35

The latest Windows Azure SDK is 1.7 so 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.

查看更多
等我变得足够好
3楼-- · 2020-06-06 08:37

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.

As for upgrading, first get the sdk and 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.

查看更多
【Aperson】
4楼-- · 2020-06-06 08:38

List with all Azure Packages: Azure SDK for .NET

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.

查看更多
登录 后发表回答