OSDN Git Service

app.manifestの記述を新しいVisualStudioで作成されるテンプレートに合わせて更新
authorKimura Youichi <kim.upsilon@bucyou.net>
Tue, 1 May 2018 22:47:38 +0000 (07:47 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sun, 14 Oct 2018 07:09:18 +0000 (16:09 +0900)
OpenTween/app.manifest

index 273dee5..34b7733 100644 (file)
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="utf-8"?>
-<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
   <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
     <security>
       <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
         <!-- UAC マニフェスト オプション
-            Windows のユーザー アカウント制御のレベルを変更するには、
-            requestedExecutionLevel ノードを以下のいずれかで置換します。
+             Windows のユーザー アカウント制御のレベルを変更するには、
+             requestedExecutionLevel ノードを以下のいずれかで置換します。
 
         <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
         <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
         <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />
 
-            requestedExecutionLevel ノードを指定すると、ファイルおよびレジストリの仮想化は無効になります。
-            旧バージョンとの互換性のためにファイルおよびレジストリの仮想化
-            使用する場合は、requestedExecutionLevel ノードを削除します。
+            requestedExecutionLevel 要素を指定すると、ファイルおよびレジストリの仮想化が無効にされます。
+            アプリケーションが下位互換性を保つためにこの仮想化を要求する場合、この要素
+            削除します。
         -->
         <requestedExecutionLevel level="asInvoker" uiAccess="false" />
       </requestedPrivileges>
@@ -22,8 +22,9 @@
 
   <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
     <application>
-      <!--このアプリケーションが動作するように設計されている、Windows のすべてのバージョンの一覧。
-      Windows は最も互換性の高い環境を自動的に選択します。-->
+      <!-- このアプリケーションがテストされ、協働するようテストされた Windows バージョンの
+           一覧。適切な要素をコメント解除すると、最も互換性のある環境を Windows が
+           自動的に選択します。-->
 
       <!-- Windows 7 -->
       <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
     </application>
   </compatibility>
 
+  <!-- アプリケーションが DPI 対応であり、それ以上の DPI で Windows によって自動的にスケーリングされないことを
+       示します。Windows Presentation Foundation (WPF) アプリケーションは自動的に DPI に対応し、オプトインする必要は
+       ありません。さらに、この設定にオプトインする .NET Framework 4.6 を対象とする Windows Forms アプリケーションは、
+       app.config ファイルで 'EnableWindowsFormsHighDpiAutoResizing' 設定を 'true' に設定する必要があります。-->
+  <application xmlns="urn:schemas-microsoft-com:asm.v3">
+    <windowsSettings>
+      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
+    </windowsSettings>
+  </application>
+
   <!-- Windows のコモン コントロールとダイアログのテーマを有効にします (Windows XP 以降) -->
   <!-- <dependency>
     <dependentAssembly>
     </dependentAssembly>
   </dependency>-->
 
-  <asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
-    <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
-      <!-- DPI 対応であることを宣言 -->
-      <dpiAware>true</dpiAware>
-    </asmv3:windowsSettings>
-  </asmv3:application>
-
-</asmv1:assembly>
+</assembly>