Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
"$(DevEnvDir)..\..\Common7\Tools\Bin\mt.exe" -manifest "$(ProjectDir)$(TargetName).exe.manifest" –outputresource:"$(TargetDir)$(TargetFileName)";#1
"There is more support for manifests then you might see.Firstly, the compilers have new switches for manifest, so there is no post build event.C:\>csc.exe /? | findstr -i man/win32manifest:<file> Specify a Win32 manifest file (.xml)/nowin32manifest Do not include the default Win32 manifestSecondly, if you have a .manifest file in your project, that file will appear in the dropdown. You can then select the file, and it will be passed to compiler. This is how one can add a custom manifest file."
C:\>csc.exe /? | findstr -i man/win32manifest:<file> Specify a Win32 manifest file (.xml)/nowin32manifest Do not include the default Win32 manifest