2016-07-28 45 views
2

當我使用的NuGet發行任務,作爲構建定義的一部分,它似乎錯誤,不管我做什麼,與錯誤:VSTS的NuGet發佈任務的問題

##[error]Unhandled: %s is not a solution file. Check the 'path to solution or packages.config' property of the NuGetInstaller task. 

我不知道這意味着什麼的我能做些什麼來解決它。完整的日誌的任務是:

2016-07-28T13:39:44.3146094Z Set workingFolder to default: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.103.0\tasks\NuGetPublisher\0.2.0 
2016-07-28T13:39:44.8813939Z ##[debug]agent.workFolder=C:\a 
2016-07-28T13:39:44.8813939Z ##[debug]loading inputs and endpoints 
2016-07-28T13:39:44.8823941Z ##[debug]loading ENDPOINT_AUTH_$/ 
2016-07-28T13:39:44.8843932Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_$/_ACCESSTOKEN 
2016-07-28T13:39:44.8853942Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 
2016-07-28T13:39:44.8863939Z ##[debug]loading ENDPOINT_AUTH_SCHEME_$/ 
2016-07-28T13:39:44.8863939Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 
2016-07-28T13:39:44.8873940Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 
2016-07-28T13:39:44.8873940Z ##[debug]loading INPUT_FEEDNAME 
2016-07-28T13:39:44.8883941Z ##[debug]loading INPUT_NUGETFEEDTYPE 
2016-07-28T13:39:44.8883941Z ##[debug]loading INPUT_PRECREDPROVIDERNUGET 
2016-07-28T13:39:44.8883941Z ##[debug]loading INPUT_SEARCHPATTERN 
2016-07-28T13:39:44.8893942Z ##[debug]loading INPUT_VERBOSITY 
2016-07-28T13:39:44.8903938Z ##[debug]loaded 11 
2016-07-28T13:39:45.0733941Z ##[debug]check path : C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.103.0\tasks\NuGetPublisher\0.2.0\task.json 
2016-07-28T13:39:45.0743936Z ##[debug]set resource file to: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.103.0\tasks\NuGetPublisher\0.2.0\task.json 
2016-07-28T13:39:45.0753931Z ##[debug]system.culture=en-US 
2016-07-28T13:39:45.0784231Z ##[debug]searchPattern=C:\a\1\s\**\*.nupkg; 
2016-07-28T13:39:45.0784231Z ##[debug]System.DefaultWorkingDirectory=C:\a\1\s 
2016-07-28T13:39:45.0793937Z ##[debug]Matching glob pattern: C:\a\1\s\**\*.nupkg 
2016-07-28T13:39:45.0793937Z ##[debug]Index of first wildcard: 9 
2016-07-28T13:39:45.0803939Z ##[debug]find root dir: C:\a\1 
2016-07-28T13:39:45.3943927Z ##[debug]find C:\a\1 
2016-07-28T13:39:45.3953940Z ##[debug]3101 matches. 
2016-07-28T13:39:45.5293937Z ##[debug]check path : C:\a\1\s 
2016-07-28T13:39:45.5353925Z ##[debug]task result: Failed 
2016-07-28T13:39:45.5503936Z ##[error]Unhandled: %s is not a solution file. Check the 'path to solution or packages.config' property of the NuGetInstaller task. 

我甚至嘗試禁用所有其他步驟,只有具有出版商步爲活動,一個過濾器,將無法接收任何文件,但它仍然在失敗同一點。

任何幫助將不勝感激。

+0

你能發佈的內容「路徑溶液或packages.config」行項目中的NuGet發佈任務配置? –

+0

僅供參考,我也開始瞭解這一點,在我的結尾沒有任何改變,並且構建已經開始失敗。這是在MS說「問題已解決」之後......以防萬一它是他們的錯; p – GrahamB

回答

3

這是一個已知問題:NuGet Publish Error on Version 0.2.0

請嘗試以下解決方法:

As a workaround, check the 'Path/Pattern to nupkg' for doubled semicolons, or semicolons at the beginning or end of the value. We had an internal report of that as well, and a trailing semicolon (resulting in an "empty" pattern)is what triggered that bug for them.

+0

這是我的問題。在更新之前,我的路徑在最後有一個分號,並且工作正常。更新後它拋出錯誤,但在刪除分號後,它又開始工作了。啊,這麼簡單的事情!感謝您的幫助 – doodlleus

+0

我也可以確認這可以解決問題。感謝您發佈它,在我必須去修改我的大型微服務套件的每個構建腳本之前,是否有修復方案? – GrahamB