2017-02-21 7 views
0

Nantを使用してTeamCityを使用してCIを構築中です。私はサーバーに展開中にApp_Dataフォルダを除外するコードの最後の部分に立ち往生しています。ここに私のコードです:msdeploy.exeを使用してWeb Deploy V3コマンドラインでフォルダを除外する方法

C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy.exe 
-verb:sync 
-source:contentPath="C:\a\testteamcity\Demo\WebApp\obj\Release\Package\PackageTmp" 
-dest:contentPath='prod.test/deploy' 
-skip:Directory="App_Data" -skip:objectName=dirPath,absolutePath="\\App_Data" 
,ComputerName="https://XXX:8172/msdeploy.axd?prod. 
test",UserName='XXX\abc',Password=****',AuthType='Basic' 
-allowuntrusted -usechecksum 



Error: Unrecognized skip directive 'Directory'. Must be one of the following: "objectName," "keyAttribute," "absolutePath," "xPath," "attributes.<name>." 
Error count: 1. 

私はこのコードで間違っていますどのようなヘルプは大きな助けになるでしょう。 (改行は読みやすくするために追加された)

答えて

0

構成:

-verb:sync 
-source:contentPath="D:\Releases\1.107.1323" 
-dest:contentPath='%system.website%', 
     ComputerName="%system.computername%%system.226.website%", 
     UserName='%system.un%', 
     Password='%system.pw%', 
     AuthType="Basic" 
-skip:Directory="%tfs.skip.directory%" 
-EnableRule:DoNotDeleteRule 
-allowuntrusted 
-usechecksum 

tfs.skip.directory-->\\App_Data Configuration parameter

関連する問題