Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
设想
问题
如何在不从部署设置中删除“删除附加文件...”选项的情况下将现有文件保留在上传文件夹的目标位置?
显然你可以用 wpp.targets 文件来做到这一点。然后只跳过你想要的文件夹...
<ItemGroup> <MsDeploySkipRules Include="SkipErrorLogFolder1"> <SkipAction>Delete</SkipAction> <ObjectName>FolderPath</ObjectName> <AbsolutePath>ErrorLog</AbsolutePath> </MsDeploySkipRules> </ItemGroup>
看这里,先看那里:
用于跳过目录的 MSbuild 命令行参数