Using mage.exe with .net 4 assemblies

If you’re using mage.exe directly to create an application manifest, and you’re seeing errors like this:

Warning MSB3178: Assembly <assembly> is incorrectly specified as a file.

and the assemblies flagged up are targeting .net 4, then you’re probably using the wrong (old) version. Try the one in C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools.

7 thoughts on “Using mage.exe with .net 4 assemblies

  1. David Alpert June 28, 2012 / 4:38 am

    This post saved me hours of frustration today by pointing me right at the solution to my problem. Many thanks!

    • Graham Hay June 28, 2012 / 8:09 am

      Took me a while to work it out :(

  2. Morten Grøtan October 18, 2012 / 10:18 pm

    Wonderful! You saved the day!

  3. Arnaud Weil November 9, 2012 / 3:57 pm

    Thanks for sharing, you also saved me hours!

  4. Aliona December 2, 2013 / 9:06 pm

    Thank you! Very helpful post.

  5. asdf October 1, 2014 / 4:33 pm

    thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s