Tôi sử dụng teamcity để xây dựng các dự án Sharepoint bằng cách sử dụng MSBuild 64 bit. Tất cả các dự án đều hoạt động tốt thay vì dự án luồng công việc của tôi. Khi sử dụng Framework 4.0 Tôi nhận được thông báo lỗiKhông thể xây dựng dự án quy trình làm việc với msbuild (Sharepoint 2010)
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]
Tôi nhớ rằng microsoft đã thoát khỏi những cơ chế Workflow cũ vì vậy tôi hy vọng rằng nó có thể chỉ làm việc với các khuôn khổ cũ 3.5 và xây dựng các dự án với điều đó nhưng đã nhận lỗi khác :
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.
Trong Visual studio 2010, công trình xây dựng hoạt động tốt.
Tạo thư mục nào? Với tên gì? Với những gì bên trong nó? – Shaggydog
Xin lỗi. Cách đây rất lâu. Tôi không thể nhớ. (Bằng cách nào đó cảm thấy như một chính khách, bây giờ :)) –
Đã có cùng một vấn đề với TeamCity, để mô tả nó chính xác hơn 'Temp' phải có mặt trong 'C: \ Windows \ system32 \ config \ systemprofile \ AppData \ Local' thư mục –