dotnet core app run as administrator

I found the simplest workaround would be to add the app.manifest file with the setting like what in net framework app

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

then on your net core project file (.csproj in C# project) add the following:

<PropertyGroup>
  <ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>

*Worked in Console and WPF netcore 3.0

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)