權限變更調整success

This commit is contained in:
jasonchenwork 2025-04-08 11:16:32 +08:00
parent 27f03e449a
commit 9b7907c837
2 changed files with 4 additions and 11 deletions

View File

@ -1,17 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v3">
<?xml version="1.0" encoding="utf-8"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<!-- 確保 manifestVersion 屬性存在 -->
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<manifestVersion>1.0</manifestVersion>
</windowsSettings>
</application>
</assembly>

View File

@ -8,7 +8,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<!-- <ApplicationManifest>app.manifest</ApplicationManifest> --> <!-- 確保這一行引用了 manifest 文件 -->
<ApplicationManifest>app.manifest</ApplicationManifest> <!-- 確保這一行引用了 manifest 文件 -->
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>