views:

259

answers:

2

We are using mage to generate our applications manifests as part of our build process. Upon upgrading to .Net 4 we now find it generates an invalid manifest.

The reason is there is no compatibleFrameworks attribute being set in the application manifest which we generate every build.

Is there anyway we can make Mage add this element of should we only ever update existing manifests

A: 

Hi,

Have you installed Visual Studio 2010? Are you using the Mage version that is in c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin ?

RobinDotNet
I am using the Visual Studio 2010 command prompt and build tools
Kev Hunter
Just for grins, can you copy the versions out of the 7.0 folder and put them in a folder like C:\Temp\ and try it from there and see if you have any better luck? I did ask the ClickOnce team about this, and they said if you use the new version of the mage tools, it should work fine.
RobinDotNet
Will check it out when I am back at work
Kev Hunter
A: 

Add this to your GenerateDeploymentManifest MSBuild task

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

and that should fix it

David Anderson
Thanks David, I will try that when I get back to work
Kev Hunter
error MSB4064: The "TargetFrameworkMoniker" parameter is not supported by the "GenerateDeploymentManifest" task. Verify the parameter exists on the task, and it is a settable public instance property.
Noel Kennedy