azure - Visual Studio Team Services 生成错误无法复制 AssemblyAttributes.cs

标签 azure tfs msbuild azure-devops

将 Web 角色添加到我的 Azure 项目后,我的 Visual Studio Team Services 环境中出现生成错误。不过,我无法弄清楚是什么原因造成的。 AssemblyAttributes.cs 来自哪里?我在解决方案文件夹中找不到此文件。

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.7\Microsoft.WindowsAzure.targets (2787, 5)
Unable to copy file "C:\Users\buildguest\AppData\Local\Temp\.NETFramework,Version=v4.5.2.AssemblyAttributes.cs" to "C:\a\6e05cef4\xxxx\xxxx.Backend.Api.Azure\obj\Debug\Tijdmunt.Ui.WebRole\C:\Users\buildguest\AppData\Local\Temp\.NETFramework,Version=v4.5.2.AssemblyAttributes.cs". The given path's format is not supported.

最佳答案

AssemblyAttributes.cs 是由 MSBuild 创建的临时生成文件,因此它不会出现在您的解决方案中。相反,它将位于临时文件夹下。

由于它是一个临时文件并在每次构建时创建,因此我只需转到以下位置并删除该文件,然后我的解决方案开始再次成功构建。

C:\Users\UserName\AppData\Local\Temp.NETFramework,Version=v4.5.AssemblyAttributes.cs

希望这对其他人有帮助。

关于azure - Visual Studio Team Services 生成错误无法复制 AssemblyAttributes.cs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32488901/

相关文章:

javascript - Azure 移动服务 : Get Server DateTime and compare it

version-control - IBM 的 RTC 和 Microsoft 的 TFS 2010

msbuild - 将值从 MSBuild 任务传递到 TFS 构建工作流程

msbuild - 使用 MSBuild 和 Microsoft.Sdc.Tasks 安装 win32 服务

Azure WebJob ProcessQueueMessage 无法读取 CloudQueueMessage

.net - 错误请求 - 无效 URL

azure - ADO YAML 失败 : No repository found by name templates

tfs - 了解标签限制

java - TFS Java SDK 在 Tomcat 上运行缓慢

MSBuild:为子构建指定平台时出现问题