Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Run As Admin from Recent solutions list

I would like to run Visual Studio 2017/2019/2022 as admin when I select a project from the recent list in the taskbar, ie. when opening a project via Explorer/Shell shortcuts.

I did use the setting: properties -> shortcut -> advanced -> run as admin checkbox.

Unfortunately, this does not result in devenv running as Administrator.

Any ideas on how to fix this?

like image 316
Paul0515 Avatar asked Mar 10 '17 16:03

Paul0515


People also ask

How do I set Visual Studio always to run as administrator?

On the Windows desktop, right-click the Visual Studio shortcut, and then select Properties. Select the Advanced button, and then select the Run as administrator check box. Select OK, and then select OK again.

Can you force Visual Studio to always run as an administrator in Windows 10?

Open Visual Studio as Administratorfrom Properties window select Advanced… from Advanced Properties check on Run as Administrator option. select Ok in Advanced Properties window, Apply and then Ok on VS 2017 Properties.

How do I force my .NET application to run as administrator?

Right click your executable, go to Properties > Compatibility and check the 'Run this program as admin' box.

Does Visual Studio need to run as administrator?

You can do nearly everything in the Visual Studio IDE as a normal user, but, you need administrator permissions to complete the following tasks: Installing Visual Studio. Upgrading from a trial edition of Visual Studio. Installing, updating, or removing local Help content.


Video Answer


1 Answers

  1. Close all instances of Visual Studio
  2. Right click on the Visual Studio icon in your task bar
  3. Right click on Visual Studio and click Properties
  4. Click open File Location button
  5. Right-click devenv.exe file in that folder appears
  6. Select Troubleshoot compatibility
  7. Select Troubleshoot program
  8. Select The program requires additional permissions
  9. Click Test the program and wait for the program to launch
  10. Then click Next button
  11. Select Yes, save these settings for this program
  12. Click Close
  13. Reopen your project from recent list
like image 75
Steve Kennedy Avatar answered Sep 28 '22 03:09

Steve Kennedy