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.
在 vb.net 中设置构建后事件似乎总是为所有配置和所有平台设置 - 即使我希望它在每种情况下都不同。有没有办法强制执行后一种行为?
目前我被迫IF "$(PlatformName)"=="x64"在构建后事件命令行中进行测试,等等 - 丑陋!
IF "$(PlatformName)"=="x64"
我还没有被All Configurations选中。
All Configurations
您可以创建一堆cmd名为 的文件postbuild_x64.cmd,postbuild_x86.cmd然后使用call postbuild_$(PlatformName).cmd.
cmd
postbuild_x64.cmd
postbuild_x86.cmd
call postbuild_$(PlatformName).cmd