使用 mage.exe 更改产品名称
I need to update the application's manifest with a new value for 'product'. With mage.exe
I can update the name and publisher but NOT the product. In MageUI you can do this, but I need to do it on the commandline.
Is there a solution or workaround for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我玩了一下,看来命令行工具确实缺乏这种功能。我想这样做是为了保持轻量(或者可能是成本问题)。
另一种方法是使用 GenerateApplicationManifest MSBuild 任务:
示例:
这为您提供了更多选择(事实上,您可以通过
MageUI
执行的所有操作都可以从这里完成),并且您可以绕过mage.exe
(及其限制)完全。您应该能够在支持 MSBuild 的任何地方使用它(csproj 文件、TFS Build proj 文件等)。
I played around and it seems the command line tool indeed lacks this capability. I guess it was done for keeping it lightweight (or maybe cost issues).
Alternative would be to use the GenerateApplicationManifest MSBuild task:
Example:
This gives you lot more options (in fact everything that you can do through
MageUI
, can be done from here) and you bypassmage.exe
(and its limitations) totally.You should be able to use it anywhere MSBuild is supported (csproj files, TFS Build proj files etc).