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条回答
We Are One
2楼-- · 2020-06-06 08:13

There doesn't appear to be one at this time, but I found this: AnglicanGeek's Unofficial Windows Azure Service Runtime 1.6

查看更多
beautiful°
3楼-- · 2020-06-06 08:13

It's now a regular package on NuGet:

Install-Package Microsoft.WindowsAzure.SDK

查看更多
来,给爷笑一个
4楼-- · 2020-06-06 08:14

How to add Microsoft.WindowsAzure.ServiceRuntime

For anyone still battling, make sure you look under Assemblies > Extensions ;) This has now got me twice within 3 months!

查看更多
孤傲高冷的网名
5楼-- · 2020-06-06 08:16

You need to install the particular version of the Azure SDK which you want to build with.

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.

e.g. for 2.2 or 2.3 SDK and Microsoft.WindowsAzure.ServiceRuntime or Microsoft.WindowsAzure.Diagnostics assemblies, you need the 'WindowsAzureAuthoringTools' MSI installer - not the 'WindowsAzureLibsForNet-x64' MSI, which installs some of the other reference libraries.

查看更多
Bombasti
6楼-- · 2020-06-06 08:21

I had a similar problem.

Option 1)

I added a dll libray in my Google Drive Storage: Microsoft.WindowsAzure.CloudDrive

In this case you should download and create a "static" link.

Option 2)

and I found a NuGet Package:

Azure SDK 2.2 DLLs

PM> Install-Package AzureSDK2.2DLLs

If you need more information, please contact me.

查看更多
一夜七次
7楼-- · 2020-06-06 08:30

You can find Microsoft.WindowsAzure.ServiceRuntime.dll located in the path:

Program Files\Microsoft SDKs\Windows Azure\.NET SDK\<sdk_version>\bin\runtimes\base
查看更多
登录 后发表回答