Why does Mage.exe not generate a compatibleFrameworks attribute?

后端 未结 2 1488
一个人的身影
一个人的身影 2021-01-11 10:19

We are using Mage.exe to generate our application\'s manifests as part of our build process. Upon upgrading to .NET 4 we now find it generates an invalid manifest.

T

相关标签:
2条回答
  • 2021-01-11 10:41

    There is a separate copy of mage.exe built for .NET 4.0. Try using this copy from C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools (or ...\v7.1\Bin\NETFX 4.0 Tools depending on which SDK version you have installed).

    I was actually having this same problem and using the mage.exe from NETFX 4.0 Tools fixed it for me.

    0 讨论(0)
  • 2021-01-11 10:43

    Add this to your GenerateDeploymentManifest MSBuild task

       TargetFrameworkMoniker=".NETFramework,Version=v4.0"        
    

    and that should fix it

    0 讨论(0)
提交回复
热议问题