【发布时间】:2017-02-21 10:38:24
【问题描述】:
我正在使用 Nant 使用 TeamCity 构建 CI。在部署到服务器时,我坚持使用最后一段代码来排除 App_Data 文件夹。这是我的代码:
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.
我在这段代码中做错了什么任何帮助都会有很大的帮助。
【问题讨论】: