2013-03-12 226 views
0

我下載了this JiraSVN plugin的源代碼,並在VS2010中打開了.sln文件。我立刻迎了這樣的警告:C#自定義工具'SettingsSingleFileGenerator'輸出未找到

A custom tool 'SettingsSingleFileGenerator' is associated with file 'Properties\Settings.settings', but the output of the custom tool was not found in the project. You may try re-running the custom tool by right-clicking on the file in the Solution Explorer and choosing Run Custom Tool.

我不熟悉所有與此自定義工具或什麼是應該做的,也不知道怎樣去解決這個問題。 (我試過的建議,右鍵單擊並重新運行自定義工具,但什麼都沒有發生。)

當我嘗試建立時,出現此錯誤:

Source file 'C:...\Properties\Settings.Designer.cs' could not be opened ('Unspecified error ')

考慮看看Solution Explorer中,我看到了項目之一以下條目:(其中最後兩個條目有感嘆號警告圖標)

└─Properties 
     └─/!\ Settings.settings 
      └─/!\ Settings.Designer.cs 

我試圖排除ŧ來自該項目的兩個條目,但獲得了更多的錯誤。

我該如何解決這個問題?構建是否破裂,還是我沒有正確設置?

回答

1

我在嘗試編譯自己保存的代碼時突然遇到了同樣的錯誤。代碼將不再編譯,即使最後一次保存它,一切都很好。

我簡單地從設置文件屬性的自定義工具行中刪除了「SettingsSingleFileGenerator」(我的項目/設置文件夾中,你的錯誤信息應該告訴你它在哪裏)。刪除這使我可以順利再次編譯。

1

在項目的上下文菜單中,進入屬性 - 設置 - 「點擊這裏創建...」。這爲我的項目創建了一個空的屬性文件。