【问题标题】:The type of namespace name '...' does not exist in the namespace '...' | dotnet restore doesn't help | .NET C# Azure命名空间名称“...”的类型在命名空间“...”中不存在 | dotnet restore 无济于事 | .NET C# Azure
【发布时间】:2019-02-19 09:39:49
【问题描述】:

我打开了一个基于 C# 的 Microsoft Azure 开源应用程序:

https://github.com/Azure-Samples/blockchain/tree/master/blockchain-workbench/rest-api-samples/dotnet

在 Visual Studio 2017 中打开它时出现很多错误:

我读到有可能引用了一些包,但我们需要恢复它。 输入 donent restore 时,我收到一条成功消息:

C:\Users\path\blockchain\blockchain-workbench\rest-api-samples\dotnet\Workbench.Client.csproj 的恢复在 43.1 毫秒内完成。

但仍然没有任何变化,错误仍然存​​在。 我做错了什么?

谢谢

【问题讨论】:

  • 你的 vs 2017 是最新的吗?你能检查一下扩展“Azure Functions and Web Jobs Tools”吗?有关先决条件here 的更多信息。有时,简单地重新启动 Visual Studio 也会有所帮助...
  • 最后我手动下载了所有的包,它工作了,谢谢。

标签: azure nuget azure-active-directory dotnet-httpclient nuget-package-restore


【解决方案1】:

对于这个错误,你只需要下载所有需要的包。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-05-09
    • 1970-01-01
    • 2012-06-19
    • 1970-01-01
    • 2012-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多