当前位置:网站首页>ClickOnce does not support request execution level 'requireAdministrator'
ClickOnce does not support request execution level 'requireAdministrator'
2022-07-06 01:24: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>
Delete Project documents .csproj , Don't click publish
<?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 List Options
If you want to change Windows User account control level , Please use
Replace one of the following nodes requestedExecutionLevel node .n
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Appoint requestedExecutionLevel Element will disable file and registry virtualization .
If your application needs this virtualization for backward compatibility , Delete this
Elements .
-->
The most important sentence
<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>
<!-- Designed to work with and have been tested for this application
Windows List of versions . Remove the appropriate elements of the comment ,
Windows The most compatible environment will be automatically selected . -->
<!-- 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>
<!-- Indicates that the application can sense DPI And Windows stay DPI It will not be
Automatic scaling .Windows Presentation Foundation (WPF) Application auto awareness DPI, There is no need to
Choose to join . Select the Windows Forms application ( The goal is .NET Framework 4.6 ) And
In its app.config Lieutenant general "EnableWindowsFormsHighDpiAutoResizing" Set to "true".-->
<!--
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
-->
<!-- Enable Windows Topics for common controls and dialog boxes (Windows XP And later ) -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->
</assembly>
边栏推荐
- 037 PHP login, registration, message, personal Center Design
- Leetcode 208. 实现 Trie (前缀树)
- Introduction to robotics I. spatial transformation (1) posture, transformation
- MYSQL---查询成绩为前5名的学生
- Leetcode1961. 检查字符串是否为数组前缀
- Netease smart enterprises enter the market against the trend, and there is a new possibility for game industrialization
- Finding the nearest common ancestor of binary tree by recursion
- Convert binary search tree into cumulative tree (reverse middle order traversal)
- Mlsys 2020 | fedprox: Federation optimization of heterogeneous networks
- Une image! Pourquoi l'école t'a - t - elle appris à coder, mais pourquoi pas...
猜你喜欢
BiShe - College Student Association Management System Based on SSM
How to extract MP3 audio from MP4 video files?
伦敦银走势中的假突破
Unity | 实现面部驱动的两种方式
ThreeDPoseTracker项目解析
VMware Tools installation error: unable to automatically install vsock driver
MATLB|实时机会约束决策及其在电力系统中的应用
Superfluid_ HQ hacked analysis
关于softmax函数的见解
Idea sets the default line break for global newly created files
随机推荐
Modify the ssh server access port number
Dedecms plug-in free SEO plug-in summary
Use of crawler manual 02 requests
Leetcode sword finger offer 59 - ii Maximum value of queue
基於DVWA的文件上傳漏洞測試
黄金价格走势k线图如何看?
How to extract MP3 audio from MP4 video files?
2022 Guangxi Autonomous Region secondary vocational group "Cyberspace Security" competition and its analysis (super detailed)
[技术发展-28]:信息通信网大全、新的技术形态、信息通信行业高质量发展概览
Mathematical modeling learning from scratch (2): Tools
MATLB | real time opportunity constrained decision making and its application in power system
【第30天】给定一个整数 n ,求它的因数之和
Live broadcast system code, custom soft keyboard style: three kinds of switching: letters, numbers and punctuation
Exciting, 2022 open atom global open source summit registration is hot
Vulhub vulnerability recurrence 75_ XStream
Mysql--- query the top 5 students
yii中console方法调用,yii console定时任务
Threedposetracker project resolution
IP storage and query in MySQL
Redis' cache penetration, cache breakdown, cache avalanche