简体   繁体   中英

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

I'm following this guide How to get started with Azure Table storage and Visual Studio connected services . The very first code that I add:

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

Gives an error:

Error CS0234 The type or namespace name 'Framework' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

I've looked in NuGet for the Microsoft.Framework and couldn't find it. What am I missing here? is this guide no longer relevant?

使用此命令安装此框架

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

Based on your description, you have followed the get started article to add the assembly. I test on my local everything works fine. As my test, if you missing Microsoft.Framework.Logging , you will get the error: The type or namespace name 'Logging' does not exist in the namespace 'Microsoft.Framework' (are you missing an assembly reference?) . If you missing Microsoft.Framework.Configuration.Json , you will get the error: The type or namespace name 'Configuration' does not exist in the namespace 'Microsoft.Framework' (are you missing an assembly reference?) . So I could not reproduce your issue. I would recommend you to check your application whether it would work Before 'Add Connected Services'. If you just learn how to Add Connected Services', it is a good choice to create a new template to test.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM