2011-05-09 57 views

回答

4

最近在郵件列表中詢問了一個similar question。我不知道這是否與您面臨的情況相同,但希望它能幫助您。根據該人的需求,我爲msbuild任務推薦了以下內容。

CLIENT_SOURCE_DIR = 'C:/Builds/MySolution/Source/Client/' 
PUBLISH_CLIENT_DIR = 'C:/Builds/MySolution/Publish/Client/' 

desc 'Publish the web site' 
msbuild :publish do |msb| 
    msb.solution = "#{CLIENT_SOURCE_DIR}/Client.csproj" 
    msb.targets [:Clean, :Rebuild] 
    msb.properties = { 
    :configuration => :Release, 
    :UseWPP_CopyWebApplication => true, 
    :PipelineDependsOnBuild => false, 
    :webprojectoutputdir => "#{PUBLISH_CLIENT_DIR}/", 
    :outdir => "#{PUBLISH_CLIENT_DIR}/bin/" 
    } 
end 
+0

謝謝,我發現我在那個線程中需要什麼 – vintem 2011-05-10 21:13:38

相關問題