IDE: Jetbrains Rider,C#, .NET 6.0, Windows 10
I need to edit the app.manifest because the application needs administrator rights to execute some netsh commands to change the windows firewall. Everytime i try to launch the program, it crashes though because something of my app.manifest is incorrect. Can i somehow generate an app.manifest, or copy a template or something?
In app.manifest i have <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
In my .csproj file this is what my <propertygroup> looks like:
<PropertyGroup>
        <OutputType>WinExe</OutputType>
        <TargetFramework>net6.0-windows</TargetFramework>
        <Nullable>enable</Nullable>
        <UseWPF>true</UseWPF>
        <ApplicationManifest>app.manifest</ApplicationManifest>
    </PropertyGroup>
Thanks in advance!
 
    