【发布时间】:2016-11-17 08:55:35
【问题描述】:
我正在使用 C# 代码创建 MVC 项目。我有
`CloudConfigurationManager`
在使用读取数据库值。它显示红色 Error 。我已经搜索了谷歌我需要添加命名空间。
using Microsoft.Azure;
我也添加了这个,但又出现了这样的错误
type or namespace 'Azure' does not exist in the namespace 'microsoft' (are you missing an assembly reference?) showing like this how to fix this issue how can I add namespace Azure?
【问题讨论】:
-
您是否阅读过错误信息? “(您是否缺少程序集参考?)”非常清楚。您是否缺少程序集参考?
-
扩展项目引用时是否有名称为“Microsoft.Azure”的引用?
-
你知道如何使用nuget吗?如果你不会,学习。安装 Microsoft.WindowsAzure.ConfigurationManager 包来解决您的问题。无论您遵循什么教程或指南,都应该已经告诉您了。
-
谢谢@J.Steen 我解决了我的问题
标签: c# visual-studio azure namespaces