app.manifest 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 節點以下列其中之一取代。
  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. </requestedPrivileges>
  19. </security>
  20. </trustInfo>
  21. <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
  22. <application>
  23. <!-- 此應用程式已通過測試,並設計要搭配使用的
  24. 應用程式版本清單。請取消註解適當元素,
  25. Windows 就會自動選取最相容的環境。 -->
  26. <!-- Windows Vista -->
  27. <!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
  28. <!-- Windows 7 -->
  29. <!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
  30. <!-- Windows 8 -->
  31. <!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
  32. <!-- Windows 8.1 -->
  33. <!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
  34. <!-- Windows 10 -->
  35. <!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
  36. </application>
  37. </compatibility>
  38. <!-- 表示應用程式為 DPI 感知,Windows 不會在 DPI 變高時自動
  39. 縮放。Windows Presentation Foundation (WPF) 應用程式會自動感知 DPI,因此不需要
  40. 加入。以 .NET Framework 4.6 為目標的 Windows Form 應用程式若加入這項設定,也
  41. 應該在其 app.config 中將 'EnableWindowsFormsHighDpiAutoResizing' 設定為 'true'。
  42. 將應用程式設定為感知長路徑。請參閱 https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation-->
  43. <!--
  44. <application xmlns="urn:schemas-microsoft-com:asm.v3">
  45. <windowsSettings>
  46. <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
  47. <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
  48. </windowsSettings>
  49. </application>
  50. -->
  51. <!-- 啟用 Windows 通用控制項和對話方塊的佈景主題 (Windows XP 以後版本) -->
  52. <!--
  53. <dependency>
  54. <dependentAssembly>
  55. <assemblyIdentity
  56. type="win32"
  57. name="Microsoft.Windows.Common-Controls"
  58. version="6.0.0.0"
  59. processorArchitecture="*"
  60. publicKeyToken="6595b64144ccf1df"
  61. language="*"
  62. />
  63. </dependentAssembly>
  64. </dependency>
  65. -->
  66. </assembly>