Visual Studio 2013 debugged as administrator

I am writing a program in C # that requires it to run as administrator only when certain actions are performed.

When the user clicks the button, he checks if the application is running as administrator, and if not, he restarts the application as administrator.

I don't want it to constantly ask for admin access as most of the application can be used without it.

The problem I am facing is when I try to debug an application in VS2013 and click a button that requires admin access, it restarts the program and Visual Studio stops debugging it.

Is there a debug setting or configuration that will allow VS to always start debugging as an administrator?

+3


source to share


1 answer


Try this solution apply setting for shortcut (off with admin)



visual studio right click icon -> properties -> (tab) Compatibility -> (Group) Setting -> (check) Run this program as administrator -> Apply -> OK.

+3


source







All Articles