Those who could not find a solution to their problems found this solution for me: In the solution file, select
Add => New item => Application manifest file
then open it in C #.

In the application manifest file, rename "asInvoker" to "requireAdministrator". At the end, the application manifest file should look like this:

Now create your solution. Then you can open all applications as administrator rights.
user4805530
source share