When automating the manifest embedding in Visual Studio 2005 for managed languages like C# and J#, the sample line above should use the
-outputresource option rather than the
-updateresource option. Also, you may need to use the absolute path to mt.exe So:
"C:\Program Files\Microsoft Visual Studio 8\VC\bin\mt.exe" -manifest "$(ProjectDir)$(TargetName).exe.manifest" -outputresource:"$(TargetDir)$(TargetName).exe;#1"
Using the -updateresource option with managed binaries, which do not have manifests automatically embedded, produces the error:
mt.exe : general error c101008c: Failed to read the manifest from the resource of file "Foo.Application.exe". The specified resource type cannot be found in the image file.