簡體   English   中英

嘗試開始贏得ASP.NET Core和Azure Table Storage

[英]Trying to get started win ASP.NET core and azure table storage

我正在遵循本指南如何開始使用Azure Table存儲和Visual Studio連接的服務 我添加的第一個代碼:

using Microsoft.Framework.Configuration;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using System.Threading.Tasks;
using LogLevel = Microsoft.Framework.Logging.LogLevel;

給出一個錯誤:

錯誤CS0234類型或名稱空間名稱“框架”在名稱空間“ Microsoft”中不存在(您是否缺少程序集引用?)

我已經在NuGet中查看了Microsoft.Framework ,但找不到它。 我在這里想念什么? 該指南不再有用嗎?

使用此命令安裝此框架

PM> Install-Package Microsoft.Framework.Logging -Pre

根據您的描述,您已按照入門文章添加了程序集。 我在本地測試,一切正常。 作為我的測試,如果您缺少Microsoft.Framework.Logging ,則會收到錯誤: The type or namespace name 'Logging' does not exist in the namespace 'Microsoft.Framework' (are you missing an assembly reference?) 如果缺少Microsoft.Framework.Configuration.Json ,則會收到錯誤: The type or namespace name 'Configuration' does not exist in the namespace 'Microsoft.Framework' (are you missing an assembly reference?) 因此,我無法重現您的問題。 我建議您在“添加連接的服務”之前檢查您的應用程序是否可以運行。 如果您只是學習如何添加連接的服務”,那么創建一個新模板進行測試是一個不錯的選擇。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM