新建一个文本文件代码内容如下
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity processorArchitecture="x86" version="5.1.0.0" type="win32" name="test.exe"/>
<description>Test Application</description>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" processorArchitecture="x86"/>
</dependentAssembly>
</dependency>
</assembly>
假设在程序所在的目录下有一个可执行文件xxx.exe,我们把刚才建立的那个XML的文件拷贝到该目录下,并把名字改为xxx.exe.manifest,这时候你可以运行xxx.exe
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity processorArchitecture="x86" version="5.1.0.0" type="win32" name="test.exe"/>
<description>Test Application</description>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" processorArchitecture="x86"/>
</dependentAssembly>
</dependency>
</assembly>
假设在程序所在的目录下有一个可执行文件xxx.exe,我们把刚才建立的那个XML的文件拷贝到该目录下,并把名字改为xxx.exe.manifest,这时候你可以运行xxx.exe