当我尝试使用Team Foundation Build构建我的应用程序时,出现以下错误:
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1682,9): error MSB3554: 无法写入输出文件“obj\Release\Company.Redacted.BlahBlah.Localization.Subsystems.Startup_Shutdown_Processing.StartupShutdownProcessingMessages.de.resources”。指定的路径、文件名或两者都太长了。完全限定文件名必须小于260个字符,目录名必须小于248个字符。
我的项目在开发机上构建良好,因为源代码只有两个文件夹深度,但是TF Build似乎使用一个非常深的目录,导致它无法正常工作。我该如何更改所使用的文件夹?
编辑:我检查了存储在源代码控制中的我的构建.proj文件,并找到了以下内容:
如果这个被存储在数据库里,我该如何更改它?
编辑:找到了以下博客文章,这可能会指引我找到解决方案。现在我只需要弄清楚如何在构建代理中更改设置。http://blogs.msdn.com/jpricket/archive/2007/04/30/build-type-builddirectorypath-build-agent-working-directory.aspx 目前我的工作目录是“$(Temp)\$(BuildDefinitionPath)”,但现在我不知道有哪些通配符可用于指定不同的文件夹。
<!-- BUILD DIRECTORY
This property is included only for backwards compatibility. The build directory used for a build
definition is now stored in the database, as the BuildDirectory property of the definition's
DefaultBuildAgent. For compatibility with V1 clients, keep this property in sync with the value
in the database.
-->
<BuildDirectoryPath>UNKNOWN</BuildDirectoryPath>
如果这个被存储在数据库里,我该如何更改它?
编辑:找到了以下博客文章,这可能会指引我找到解决方案。现在我只需要弄清楚如何在构建代理中更改设置。http://blogs.msdn.com/jpricket/archive/2007/04/30/build-type-builddirectorypath-build-agent-working-directory.aspx 目前我的工作目录是“$(Temp)\$(BuildDefinitionPath)”,但现在我不知道有哪些通配符可用于指定不同的文件夹。