I'm trying to add a manifest file to my C# project, but all the answers/solutions I find say that I should right click on the C# project in Visual Studio. I use Visual Studio Code so I can't really do that. does anyone have a solution?
I need the manifest file to ask for admin rights on runtime. I found a lot of answers to that, my only problem is that I can't add a manifest file.
I had a same issue -HTH ;):
At the same directory of your
.csprojfile click on "New File..."Name your file to:
app.manifestCopy below code (The default app.manifest content) in it:
Now you can edit it; As commented in the default file you can use three levels for
requestedExecutionLeveltag e.g.:After saving that, you should add it to your project by adding below tag to your
.csprojfile anywhere under firstPropertyGrouptag: