简体   繁体   中英

"ClickOnce does not support" visual studio Bug?

I want to publish my C# app, but I got the error "ClickOnce does not support the request execution level 'requireAdministrator.'” .

Then I tried to uncheck "Enable ClickOnce security settings" like this answer .

but when I click "Publish" the "Enable Clickonce Security Settings" re-enables, like this un answerd question

Therefore I can't cancel the error "ClickOnce does not support the request execution level 'requireAdministrator.'”

You have an 'app.manifest' that sets this. Open it make sure it contains:

      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
            <requestedExecutionLevel level="asInvoker" uiAccess="false" />
      </requestedPrivileges>

Go to the application properties (right-click on the solution file and click the properties), then go the security tab.
Then disable the click-once security setting check box.
That will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM