我試圖完成一個開箱即用的MVC4項目的MSBuild,以便最終在我的現實生活應用程序中與Jenkins結合使用它。我試過的不是詳細教程我試過的是HereMSBuild和ASP.NET
首先,有沒有其他的開源方式來編譯+部署ASP.NET應用? - 它必須可插入詹金斯。
其次,我不斷收到許多類型的錯誤,但它們都不易於調試,因爲有價值的文檔不會在Google上輕鬆彈出。任何好的「自動生成」工具還是不錯的簡短的手冊開始使用它?
三,具體錯誤:
1. Build started 7/15/2014 10:47:13 AM. 1>Project "C:\WebSites\jenkinsDeployment\Jenkins\TestJenkinsGit.sln" on no de 1 (default targets). 1>C:\WebSites\jenkinsDeployment\Jenkins\TestJenkinsGit.sln.metaproj : erro r MSB4126: The specified solution configuration "Debug|HPD" is invalid. Please specify a valid solution configuration using the Configuration an d Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=De bug /p:Platform="Any CPU") or leave those properties blank to use the de fault solution configuration. [C:\WebSites\jenkinsDeployment\Jenkins\Tes tJenkinsGit.sln] 1>Done Building Project "C:\WebSites\jenkinsDeployment\Jenkins\TestJenkins Git.sln" (default targets) -- FAILED.
2.
C:\Program Files (x86)\Jenkins\jobs\MyApp-Test\workspace>C:\Windows\Microsoft.NET\Framework\v4.0.30319
\MSBuild.exe /p:DeployOnBuild= true /p:PublishProfile=Test;SolutionDir=C:\Program Files (x86)\Jenkins\
jobs\MyApp-Test\workspace /m /p:Configuration=Release "/p:Platform=Any CPU" DeployIt.sln
Microsoft (R) Build Engine version 4.0.30319.33440
[Microsoft .NET Framework, version 4.0.30319.34014]
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1008: Only one project can be specified.
Switch: Files
For switch syntax, type "MSBuild /help"
和許多許多......