您的位置:首页 > 移动开发

如何让程序运行后不谈程序兼容性助手

2012-04-19 16:45 183 查看
 修改 menifest 文件中的<compatibility> Section, 这个Section

用来指定你的应用程序可以兼容的操作系统。以下是MSDN上给出的示例:

   <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

   <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">

       <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">

           <application>

               <!--The ID below indicates application support for Windows Vista -->

               <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>

               <!--The ID below indicates application support for Windows 7 -->

               <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>

           </application>

      </compatibility>

    </assembly>

如果你的应用程现在正在使用一个manifest文件的话,那么将对应的 <compatibility> 节点添加到你的menifest文件中。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息