使用mage.exe更改产品名称 [英] Changing product name with mage.exe

查看:400
本文介绍了使用mage.exe更改产品名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用新的'product'值更新应用程式的载体 '。使用 mage.exe 我可以更新名称和发布商,但不能更新产品。在 MageUI 中,您可以执行此操作,但我需要在

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?

推荐答案

我玩了,似乎命令行工具确实缺乏这种能力。我想这是为了保持轻量级(或者可能是成本问题)。

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).

或者,使用 GenerateApplicationManifest MSBuild任务

示例: b
$ b

Example:

<Target Name="Build">
    <GenerateApplicationManifest
        AssemblyName="myapp.exe"
        Product="My Product"
        ...
        OutputManifest="SimpleWinApp.exe.manifest">
        <Output
            ItemName="ApplicationManifest"
            TaskParameter="OutputManifest"/>
    </GenerateApplicationManifest>
</Target>

这会给你更多的选择(事实上,你可以通过 MageUI ,可以从这里完成),你完全绕过 mage.exe (及其限制)。

This gives you lot more options (in fact everything that you can do through MageUI, can be done from here) and you bypass mage.exe (and its limitations) totally.

您应该能够在支持MSBuild的任何地方使用它(csproj文件,TFS Build proj文件等)。

You should be able to use it anywhere MSBuild is supported (csproj files, TFS Build proj files etc).

这篇关于使用mage.exe更改产品名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆