sharepoint - 无法使用 msbuild 构建工作流项目 (Sharepoint 2010)

标签 sharepoint sharepoint-2010 msbuild teamcity sharepoint-workflow

我使用 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/

相关文章:

c# - 在 Visual Studio 2010-沙盒解决方案中添加对第 3 方 DLL 的引用

c# - 如何在 Build 上运行 TextTemplatingFileGenerator (VS 2017)

msbuild - msbuild、dotnet sdks、azure、kudu等使用的环境变量列表

azure - 基于sharepoint的ADF事件触发

javascript - 未捕获的 ReferenceError : Strings is not defined clienttemplates. js?rev=J%2BGzwlHEWSv11%2BqD9XeOaw%3D%3D:1

security - 从文档库打开时,SharePoint 2010 强制我保存 PDF

c# - 如何使用 C# 以编程方式从 SP Farm 获取所有 SharePoint Web 应用程序?

c# - 网站 : MSB3270: There was a mismatch between the processor architecture

javascript - 当使用 jQuery 定位类时,您需要具体到什么程度?

javascript - 在 Sharepoint ECMAScript 中获取子站点