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
Add this to your GenerateDeploymentManifest MSBuild task
TargetFrameworkMoniker=".NETFramework,Version=v4.0"
and that should fix it