Skip to content

Commit fc14b86

Browse files
BabyhamstaBabyhamsta
authored andcommitted
- Forgot to mention with last push that Registry now verifies that keys don't pre-exist so they aren't overwriten or deleted.
- Added app.manifest to force Debug/Release to run as Admin
1 parent 6fc9ec7 commit fc14b86

File tree

2 files changed

+74
-1
lines changed

2 files changed

+74
-1
lines changed

Malcrow/Malcrow.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
</PropertyGroup>
2626
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2727
<DebugSymbols>true</DebugSymbols>
28+
<DebugType>none</DebugType>
2829
</PropertyGroup>
2930
<PropertyGroup>
3031
<ApplicationIcon>Malcrow-RedSquare.ico</ApplicationIcon>
@@ -117,5 +118,10 @@
117118
<PackageReference Include="Microsoft.AspNetCore.SystemWebAdapters" Version="1.3.0" />
118119
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
119120
</ItemGroup>
120-
<PropertyGroup />
121+
<PropertyGroup>
122+
<ApplicationManifest>app.manifest</ApplicationManifest>
123+
</PropertyGroup>
124+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
125+
<DebugType>none</DebugType>
126+
</PropertyGroup>
121127
</Project>

Malcrow/app.manifest

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
8+
</requestedPrivileges>
9+
</security>
10+
</trustInfo>
11+
12+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
13+
<application>
14+
<!-- A list of the Windows versions that this application has been tested on
15+
and is designed to work with. Uncomment the appropriate elements
16+
and Windows will automatically select the most compatible environment. -->
17+
18+
<!-- Windows Vista -->
19+
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
20+
21+
<!-- Windows 7 -->
22+
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
23+
24+
<!-- Windows 8 -->
25+
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
26+
27+
<!-- Windows 8.1 -->
28+
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
29+
30+
<!-- Windows 10 -->
31+
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
32+
33+
</application>
34+
</compatibility>
35+
36+
<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
37+
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
38+
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
39+
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config.
40+
41+
Makes the application long-path aware. See https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation -->
42+
<!--
43+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
44+
<windowsSettings>
45+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
46+
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
47+
</windowsSettings>
48+
</application>
49+
-->
50+
51+
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
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+
67+
</assembly>

0 commit comments

Comments
 (0)