我使用 teamcity 使用 64 位 MSBuild 构建 Sharepoint 项目。所有项目都工作正常,而不是我的工作流程项目。使用 Framework 4.0 时收到错误消息
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Workflow.Targets(121,5): error MSB4018: The "CompileWorkflowTask" task failed unexpectedly. [V:\Workflows\MyCustomer.WFs.TranslationWorkflow\MyCustomer.WFs.TranslationWorkflow\MyCustomer.WFs.TranslationWorkflow.csproj] c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Workflow.Targets(121,5): error MSB4018: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\vjwduioy.tmp'. [V:\Workflows\MyCustomer.WFs.TranslationWorkflow\MyCustomer.WFs.TranslationWorkflow\MyCustomer.WFs.TranslationWorkflow.csproj]
我记得微软摆脱了旧的工作流机制,所以我预计它可能只适用于旧的 3.5 框架,并用它构建了项目,但得到了另一个错误:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SharePointTools\Microsoft.VisualStudio.SharePoint.targets(37,45): error MSB4019: The imported project "C:\Windows\Microsoft.NET\Framework64\v3.5\Workflow.Targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
在 Visual studio 2010 中,构建效果很好。
最佳答案
找到解决办法: 我必须在 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\' 中创建一个文件夹
这似乎是一个完整的 TeamCity 问题
关于sharepoint - 无法使用 msbuild 构建工作流项目 (Sharepoint 2010),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9096208/