简体   繁体   English

尝试开始赢得ASP.NET Core和Azure Table Storage

[英]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 . 我正在遵循本指南如何开始使用Azure Table存储和Visual Studio连接的服务 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?) 错误CS0234类型或名称空间名称“框架”在名称空间“ Microsoft”中不存在(您是否缺少程序集引用?)

I've looked in NuGet for the Microsoft.Framework and couldn't find it. 我已经在NuGet中查看了Microsoft.Framework ,但找不到它。 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?) . 作为我的测试,如果您缺少Microsoft.Framework.Logging ,则会收到错误: 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?) . 如果缺少Microsoft.Framework.Configuration.Json ,则会收到错误: 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. 如果您只是学习如何添加连接的服务”,那么创建一个新模板进行测试是一个不错的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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