在"微软的Azure配置管理器"库不适用于UWP应用。建议?
在微软Azure配置管理器库不与UAP应用程序兼容,看来我需要它来访问CloudConfigurationManager类连接到Azure存储。它被用于解析的连接字符串:
The "Microsoft Azure Configuration Manager" library is not compatible with UAP apps and it seems that I need it to access the CloudConfigurationManager class for connecting to Azure Storage. It is used to parse the connection string:
// Parse the connection string and return a reference to the storage account.
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
CloudConfigurationManager.GetSetting("StorageConnectionString"));
我失去了一些东西在这里还是有可能获取用于连接UWP应用程序开发人员的另一种方法?
Am I missing something here or is there maybe an alternative approach for getting connected for UWP app developers?
我指的是该指南:的这里
我不相信你必须使用CloudConfigurationManager。
I don't believe you have to use CloudConfigurationManager.
您可以手动连接到它:
var credentials = new StorageCredentials("accountname", "accountkey");
var account = new CloudStorageAccount(credentials, true);
请注意:你必须有WindowsAzure.Storage引用但与UWP兼容。它的配置管理器,是不是。
Note: You will have to have WindowsAzure.Storage referenced but that is compatible with UWP. Its the configuration manager that is not.