将 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/