2012-03-12 81 views
0

當我在筆記本電腦上構建項目時,我有一個非常奇怪的行爲。我得到這個錯誤:ValidateSilverlightFrameworkPaths任務?那是什麼?

The "ValidateSilverlightFrameworkPaths" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory.

我不知道什麼這所有 - 我從來沒有建立在一個項目文件中的任何任務。我對任務一無所知,也沒有在框架目錄中聲明一些東西。我可以建立在我的另一臺機器上。該項目通過TFS共享。

谷歌沒有給我足夠的結果。 我已經刪除了我的筆記本電腦上的所有東西,並將它從TFS中再次取出。

你有一些提示,如何解決這個錯誤? 問候

回答

0

看起來好像你沒有安裝在你的筆記本電腦上的silverlight,你嘗試建立一個silverlight項目。

顧名思義,ValidateSilverlightFrameworkPaths taks是Silverlight項目構建過程的一部分。所提到的目標文件位於

Ç:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.Common.targets

含有任務類名爲Microsoft.Silverlight.Build.Tasks.dll並駐留在同一目錄中的組件。