CloudConfigurationManager missing from Azure SDK v

2019-04-23 13:28发布

问题:

Can someone help me figure out where CloudConfigurationManager exists in Azure SDK v2.4?

CloudConfigurationManager, in the v2.3 SDK, is located in: C:\Program Files\Microsoft SDKs\Windows Azure.NET SDK\v2.3\ref\Microsoft.WindowsAzure.Configuration.dll

The 2.4 SDK is at C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.4

And there's no such Microsoft.WindowsAzure.Configuration.dll in that directory..

MSDN still shows CloudConfigurationManager in Microsoft.WindowsAzure.Configuration.dl: http://msdn.microsoft.com/en-us/library/azure/microsoft.windowsazure.cloudconfigurationmanager.aspx

And so the only way I can get my project to compile is if I have both the 2.3 and 2.4 SDK installed at the moment.

回答1:

It is in the folder C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.4\packages as a local NuGet package (see below). Also, there is a file in that directory titled LocalPackagesInstallationInstructions.docx that explains how to add it as a path for your NuGet Packages. If you have a new dev environment installation (as I did recently) then you may find this helpful.



回答2:

I found it in Microsoft.Azure as opposed to Microsoft.WindowsAzure



回答3:

Latest Answer . Install Package Microsoft.WindowsAzure.ConfigurationManager.3.2.1 or newer

which contains Microsoft.Azure namespaces which is having this class. CloudConfigurationManager



回答4:

1.Download Cloud Configuration NuGet package

https://www.nuget.org/packages/Microsoft.WindowsAzure.ConfigurationManager/

2.Install the package from local by solution NuGet package Manager

3.In code you will find class in Microsoft.Azure.CloudConfigurationManager