VS2008工程不清晰

来源:互联网 发布:cms门户网站模板下载 编辑:程序博客网 时间:2024/04/29 13:00

转自:https://gist.github.com/pffang/bab575849a32b8a7b2cd


1、在注册表编辑器中找到 HLKM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide,将里面的 PreferExternalManifest 改成 1(如果没有就新增一个 DWORD 值,然后写 1)
2、将下面的代码保存为devenv.exe.manifest,将其拷贝放入devenv.exe所在文件夹,如C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE。
这样devenv就不会在高分辨率显示器中自动放大造成字体模糊了。


[html] view plain copy
 在CODE上查看代码片派生到我的代码片
  1. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">  
  2.   <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="devenv" type="win32"/>  
  3.   <description>Microsoft Visual Studio</description>  
  4.   <dependency>  
  5.     <dependentAssembly>  
  6.       <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*"/>  
  7.     </dependentAssembly>  
  8.   </dependency>  
  9.   <dependency>  
  10.     <dependentAssembly>  
  11.       <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"/>  
  12.     </dependentAssembly>  
  13.   </dependency>  
  14.   <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">  
  15.     <security>  
  16.       <requestedPrivileges>  
  17.         <requestedExecutionLevel level="asInvoker" uiAccess="false"/>  
  18.       </requestedPrivileges>  
  19.     </security>  
  20.   </trustInfo>  
  21.   <application xmlns="urn:schemas-microsoft-com:asm.v3">  
  22.     <windowsSettings>  
  23.       <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>  
  24.     </windowsSettings>  
  25.   </application>  
  26.   <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">   
  27.       <application>   
  28.         <!--This Id value indicates the application supports Windows Vista functionality -->  
  29.           <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>   
  30.         <!--This Id value indicates the application supports Windows 7 functionality-->  
  31.           <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>  
  32.         <!--This Id value indicates the application supports Windows 8 functionality-->  
  33.           <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>  
  34.         <!--This Id value indicates the application supports Windows 8.1 functionality-->  
  35.           <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>  
  36.       </application>   
  37.   </compatibility>  
  38. </assembly>  
0 0
原创粉丝点击