[英]Unable to create an Azure Cloud Service in C# with VS2013/2015
可能是因為我首先安裝了Azure SDK .NET 2.9,而我公司的項目仍基於2.7。 當我安裝2.7時,由於2.7和2.9之間的不兼容,項目創建失敗。 我按照建議的步驟進行了stackoverflow。
我的問題是以下問題:我將Web角色添加到新的Azure Cloud Service模板中:
The following NuGet packages could not be installed in project Slip:
Microsfot.WindowsAzure.Caching (version 'unknown'): Value cannot be null.
Parameter name: path1
WindowsAzure.Storage (version 'unknown'): Value cannot be null.
Parameter name: path1
如果單擊“確定”,則會顯示:
Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version 5.0.0.0, Culture=neutral, PublicKeyToken-...' or one of its dependencies. The system cannot find the file specified.
然后,我仍然可以手動添加依賴項,並嘗試在本地啟動Web角色,但是它說:
Failed to locate the Microsoft Azure SDK. Please make sure the Microsoft Azure SDK v2.7 is installed.
SDK在那里,否則我一開始就無法創建項目,但是可能缺少一部分?
我在VS 2013和2015上都嘗試過。
看來我沒有認真遵循Microsoft網站上的“安裝說明”,您可以從該網站下載SDK。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.