【发布时间】:2016-11-14 20:24:54
【问题描述】:
ASP.NET 4.5 MVC 应用程序
在本地构建/运行正常
Packages 文件夹未检入源代码管理
源代码控制如下所示:
MyProject
-.nuget
-.tfignore
-MyProject.Web
-MyProject.Utilities
-MyProject
-MyProject.sln
.nuget文件夹里面只有一个文件:NuGet.config,里面有这个:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
</configuration>
我可以在本地删除 packages 文件夹,运行它,它会再次正确下载所有内容。
当我从 Visual Studio 开始构建解决方案并将其部署到 Azure 云服务时,构建失败并显示:
The type or namespace name 'WindowsAzure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
【问题讨论】:
标签: asp.net-mvc visual-studio msbuild nuget nuget-package-restore