asp.net - VSTS 构建失败,错误为 : The type or namespace name 'Practices' does not exist in the namespace 'Microsoft'

标签 asp.net nuget azure-devops nuget-package azure-pipelines

我有一个在本地机器上运行良好的 web api 项目。在我将它推送到 Visual Studio Team Services 上的 GIT,创建一个构建定义(启用了恢复 NuGet 包)并将构建排队后,我收到以下错误:

命名空间“Microsoft”中不存在类型或命名空间名称“Practices”(您是否缺少程序集引用?)

对于 CommonLibrary 引用,我尝试使用“Keep Local”属性为 true 和 false 以及“特定版本”属性为 true 和 false。这两个属性的任何组合都会产生相同的结果。

最佳答案

我在 VSO 构建和 Azure 包中遇到了类似的问题:
enter image description here

问题已由 reinstalling the packages 解决为项目。

Package Manager Console :

Update-Package -Reinstall

关于asp.net - VSTS 构建失败,错误为 : The type or namespace name 'Practices' does not exist in the namespace 'Microsoft' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35474859/

相关文章:

azure - 在 Azure DevOps 发布管道中自动创建标签

asp.net - jQuery 与 DotNetNuke 一起使用时出现问题

asp.net - 想在类上使用 XmlElement 属性?

c# - Visual Studio 应用程序中的解决方案中缺少某些 NuGet 包

.net - nuget安装退出代码9009

templates - Azure DevOps 管道 : same template twice in one stage

azure - 如何避免在环境中的 Azure Agent for Pipeline 中创建新文件夹

asp.net - 只能将ScriptManager的一个实例添加到页面中

asp.net - 将选定值设置为 UserControl 中的 DropDownList

nuget - 在企业中使用Nuget自动包还原有什么优势?