app.manifest 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
  3. <assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
  4. <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
  5. <security>
  6. <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
  7. <!-- UAC 清单选项
  8. 如果想要更改 Windows 用户帐户控制级别,请使用
  9. 以下节点之一替换 requestedExecutionLevel 节点。n
  10. <requestedExecutionLevel level="asInvoker" uiAccess="false" />
  11. <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
  12. <requestedExecutionLevel level="highestAvailable" uiAccess="false" />
  13. 指定 requestedExecutionLevel 元素将禁用文件和注册表虚拟化。
  14. 如果你的应用程序需要此虚拟化来实现向后兼容性,则删除此
  15. 元素。
  16. -->
  17. <!-- <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
  18. <requestedExecutionLevel level="asInvoker" uiAccess="false" />
  19. -->
  20. <requestedExecutionLevel level="asInvoker" uiAccess="false" />
  21. </requestedPrivileges>
  22. <applicationRequestMinimum>
  23. <defaultAssemblyRequest permissionSetReference="Custom" />
  24. <PermissionSet class="System.Security.PermissionSet" version="1" ID="Custom" SameSite="site" />
  25. </applicationRequestMinimum>
  26. </security>
  27. </trustInfo>
  28. <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
  29. <application>
  30. <!-- 设计此应用程序与其一起工作且已针对此应用程序进行测试的
  31. Windows 版本的列表。取消评论适当的元素,
  32. Windows 将自动选择最兼容的环境。 -->
  33. <!-- Windows Vista -->
  34. <!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
  35. <!-- Windows 7 -->
  36. <!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
  37. <!-- Windows 8 -->
  38. <!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
  39. <!-- Windows 8.1 -->
  40. <!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
  41. <!-- Windows 10 -->
  42. <!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
  43. </application>
  44. </compatibility>
  45. <!-- 指示该应用程序可感知 DPI 且 Windows 在 DPI 较高时将不会对其进行
  46. 自动缩放。Windows Presentation Foundation (WPF)应用程序自动感知 DPI,无需
  47. 选择加入。选择加入此设置的 Windows 窗体应用程序(面向 .NET Framework 4.6)还应
  48. 在其 app.config 中将 "EnableWindowsFormsHighDpiAutoResizing" 设置设置为 "true"。
  49. 将应用程序设为感知长路径。请参阅 https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation -->
  50. <!--
  51. <application xmlns="urn:schemas-microsoft-com:asm.v3">
  52. <windowsSettings>
  53. <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
  54. <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
  55. </windowsSettings>
  56. </application>
  57. -->
  58. <!-- 启用 Windows 公共控件和对话框的主题(Windows XP 和更高版本) -->
  59. <!--
  60. <dependency>
  61. <dependentAssembly>
  62. <assemblyIdentity
  63. type="win32"
  64. name="Microsoft.Windows.Common-Controls"
  65. version="6.0.0.0"
  66. processorArchitecture="*"
  67. publicKeyToken="6595b64144ccf1df"
  68. language="*"
  69. />
  70. </dependentAssembly>
  71. </dependency>
  72. -->
  73. </assembly>