当前位置:网站首页>ClickOnce 不支持请求执行级别“requireAdministrator”
ClickOnce 不支持请求执行级别“requireAdministrator”
2022-07-06 01:19:00 【_oP_i】
<PropertyGroup>
<PublishWizardCompleted>true</PublishWizardCompleted></PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>xxx (some value) xxx </ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>SomeFile_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>true</SignManifests>
<ItemGroup>
<None Include="SomeFile_TemporaryKey.pfx" />
</ItemGroup>
删除 项目文件.csproj ,不要点击发布
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC 清单选项
如果想要更改 Windows 用户帐户控制级别,请使用
以下节点之一替换 requestedExecutionLevel 节点。n
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
指定 requestedExecutionLevel 元素将禁用文件和注册表虚拟化。
如果你的应用程序需要此虚拟化来实现向后兼容性,则删除此
元素。
-->
最关键的一句
<requestedPrivileges>
<requestedExecutionLevel
level="highestAvailable"
uiAccess="true" />
</requestedPrivileges>
</requestedPrivileges>
<applicationRequestMinimum>
<defaultAssemblyRequest permissionSetReference="Custom" />
<PermissionSet ID="Custom" SameSite="site" Unrestricted="true" />
</applicationRequestMinimum>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- 设计此应用程序与其一起工作且已针对此应用程序进行测试的
Windows 版本的列表。取消评论适当的元素,
Windows 将自动选择最兼容的环境。 -->
<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
<!-- Windows 7 -->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
</application>
</compatibility>
<!-- 指示该应用程序可以感知 DPI 且 Windows 在 DPI 较高时将不会对其进行
自动缩放。Windows Presentation Foundation (WPF)应用程序自动感知 DPI,无需
选择加入。选择加入此设置的 Windows 窗体应用程序(目标设定为 .NET Framework 4.6 )还应
在其 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>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->
</assembly>
边栏推荐
- JMeter BeanShell的基本用法 一下语法只能在beanshell中使用
- 黄金价格走势k线图如何看?
- Dede collection plug-in free collection release push plug-in
- 视频直播源码,实现本地存储搜索历史记录
- 程序员成长第九篇:真实项目中的注意事项
- MUX VLAN configuration
- 有谁知道 达梦数据库表的列的数据类型 精度怎么修改呀
- Kotlin basics 1
- The growth path of test / development programmers, the problem of thinking about the overall situation
- yii中console方法调用,yii console定时任务
猜你喜欢
有谁知道 达梦数据库表的列的数据类型 精度怎么修改呀
cf:D. Insert a Progression【关于数组中的插入 + 绝对值的性质 + 贪心一头一尾最值】
Cf:h. maximum and [bit operation practice + K operations + maximum and]
False breakthroughs in the trend of London Silver
Leetcode study - day 35
View class diagram in idea
WordPress collection plug-in automatically collects fake original free plug-ins
现货白银的一般操作方法
ubantu 查看cudnn和cuda的版本
Test de vulnérabilité de téléchargement de fichiers basé sur dvwa
随机推荐
ORA-00030
伦敦银走势中的假突破
Live broadcast system code, custom soft keyboard style: three kinds of switching: letters, numbers and punctuation
The inconsistency between the versions of dynamic library and static library will lead to bugs
ORA-00030
Threedposetracker project resolution
A glimpse of spir-v
Docker compose配置MySQL并实现远程连接
在产业互联网时代,将会凭借大的产业范畴,实现足够多的发展
In the era of industrial Internet, we will achieve enough development by relying on large industrial categories
3D model format summary
激动人心,2022开放原子全球开源峰会报名火热开启
面试必刷算法TOP101之回溯篇 TOP34
FFT learning notes (I think it is detailed)
Questions about database: (5) query the barcode, location and reader number of each book in the inventory table
How to see the K-line chart of gold price trend?
MySQL learning notes 2
Huawei Hrbrid interface and VLAN division based on IP
WordPress collection plug-in automatically collects fake original free plug-ins
Huawei converged VLAN principle and configuration