JetBrains Rider - Windows applications Requiring Administrator Privileges

Answered

Hello, I'm trying to require administrator privileges for my .NetFramework application in Rider using C# language but I can't find the way to do it. In Visual Studio you can add a file called "app.manifest" where you can set the option:

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

How can I run an application requiring elevated priviledes?

Thank you in advance.
1
3 comments

Hello! 

You can add manually the ApplicationManifest tag to your .csproj file. Open corresponding Project file (Solution Explorer -> select your project -> F4 \ Edit > Edit sources) and add the next line to the global properties group :

<PropertyGroup>

<ApplicationManifest>app.manifest</ApplicationManifest>

</PropertyGroup>

and then create an app.manifest file (also manually). I suppose this answer also could help you. 

Please, let me know if something goes wrong. 

0

@Alexandra Guk
How could I debug a Application with Administrator Privileges

0

Hi boat

Do I understand correctly that you want to debug with Rider an app that requires administrator privileges to start? This is not possible at the moment. Here is the feature request; feel free to upvote it to show your interest: RIDER-17600 Add (don't) run as administrator to run configurations. 

 

 

0

Please sign in to leave a comment.