This is a basic post other than SharePoint. Generally we will get issues if we open Visual Studio other than administrator permissions. To overcome those security issues it will be preferred to open VS in admin credentials. We can do that by Right clicking on visual studio short cut and selecting “Run as Administrator” option. We can open Visual studio in admin mode directly instead of selecting “Run as Administrator” option every time. To do that we have to follow the steps below,
Right click on “Visual Studio” and select “Troubleshoot compatibility” option.
In “Program Compatibility Troubleshooter” wizard, select “Troubleshoot program” Option.
In “What problems do you notice” screen, check “The program requires additional permissions” checkbox, click on “Next”.
In “Test compatibility settings for the program” screen click on “Test the program” button and click on Next.
We can see “Troubleshooting has completed. Is the problem fixed?” screen. Click on “Yes Save thee settings for this program” to save the settings.