Skip to content

Commit d422676

Browse files
committed
Add app.manifest to WPF Example - enable dpi aware setting
1 parent a434d3c commit d422676

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
8888
<Prefer32Bit>false</Prefer32Bit>
8989
</PropertyGroup>
90+
<PropertyGroup>
91+
<ApplicationManifest>app.manifest</ApplicationManifest>
92+
</PropertyGroup>
9093
<ItemGroup>
9194
<Reference Include="System" />
9295
<Reference Include="System.Core">
@@ -139,6 +142,7 @@
139142
</ItemGroup>
140143
<ItemGroup>
141144
<None Include="app.config" />
145+
<None Include="app.manifest" />
142146
<None Include="packages.config" />
143147
</ItemGroup>
144148
<ItemGroup>

CefSharp.Wpf.Example/app.manifest

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<asmv1:assembly
3+
manifestVersion="1.0"
4+
xmlns="urn:schemas-microsoft-com:asm.v1"
5+
xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"
6+
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"
7+
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
8+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
9+
10+
<assemblyIdentity version="39.0.0.0" name="CefSharp.Wpf.Example.app" />
11+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
12+
<security>
13+
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
14+
<!-- UAC Manifest Options
15+
If you want to change the Windows User Account Control level replace the
16+
requestedExecutionLevel node with one of the following.
17+
18+
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
19+
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
20+
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
21+
22+
Specifying requestedExecutionLevel node will disable file and registry virtualization.
23+
If you want to utilize File and Registry Virtualization for backward
24+
compatibility then delete the requestedExecutionLevel node.
25+
-->
26+
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
27+
</requestedPrivileges>
28+
</security>
29+
</trustInfo>
30+
31+
<asmv3:application>
32+
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
33+
<dpiAware>true</dpiAware>
34+
</asmv3:windowsSettings>
35+
</asmv3:application>
36+
37+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
38+
<application>
39+
<!-- A list of all Windows versions that this application is designed to work with.
40+
Windows will automatically select the most compatible environment.-->
41+
42+
<!-- If your application is designed to work with Windows Vista, uncomment the following supportedOS node-->
43+
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"></supportedOS>-->
44+
45+
<!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node-->
46+
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>-->
47+
48+
<!-- If your application is designed to work with Windows 8, uncomment the following supportedOS node-->
49+
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"></supportedOS>-->
50+
51+
</application>
52+
</compatibility>
53+
54+
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
55+
<dependency>
56+
<dependentAssembly>
57+
<assemblyIdentity type="Win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
58+
</dependentAssembly>
59+
</dependency>
60+
61+
</asmv1:assembly>

0 commit comments

Comments
 (0)