2012-08-17 201 views
0

我正在嘗試爲客戶端SharePoint環境設置一些持續集成。TFS 2010使用WCF服務構建SharePoint

我遇到的問題是包含WCF服務的SharePoint項目。 有問題的項目構建正常,但嘗試打包並部署到構建服務器時失敗。

該項目建立並從Visual Studio部署良好,問題只發生在TFS構建服務器上。

通過生成代理拋出的錯誤如下:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SharePointTools\Microsoft.VisualStudio.SharePoint.targets (378): The "ValidatePackage" task failed unexpectedly. System.InvalidOperationException: The project service is not a serialized SharePoint project service. at Microsoft.VisualStudio.SharePoint.Tasks.ValidatePackage.OnCheckParameters() at Microsoft.VisualStudio.SharePoint.Tasks.BuildTask.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) 



The following is the error from MSBuild Logs : 

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SharePointTools\Microsoft.VisualStudio.SharePoint.targets(378,5): error MSB4018: The "ValidatePackage" task failed unexpectedly. [C:\BuildsNew\4\SharePrice\SharePrice_Dev\Sources\SharePrice\SharePrice.csproj] 
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SharePointTools\Microsoft.VisualStudio.SharePoint.targets(378,5): error MSB4018: System.InvalidOperationException: The project service is not a serialized SharePoint project service. [C:\BuildsNew\4\SharePrice\SharePrice_Dev\Sources\SharePrice\SharePrice.csproj] 
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SharePointTools\Microsoft.VisualStudio.SharePoint.targets(378,5): error MSB4018: at Microsoft.VisualStudio.SharePoint.Tasks.ValidatePackage.OnCheckParameters() [C:\BuildsNew\4\SharePrice\SharePrice_Dev\Sources\SharePrice\SharePrice.csproj] 

任何幫助將非常感激。

回答

0

如果您僅使用(http://msdn.microsoft.com/zh-cn/library/ff622991.aspx)中描述的註冊表引用DLL並且/或沒有正確安裝所有內容,我們通常會看到此錯誤。在我們的情況下,在buildserver上完全安裝SharePoint 2010(不進行配置)會消除此錯誤。