For an F# application, I attempted to follow these instructions:
How to force my .NET application to run as administrator?
Alas, Visual Studio does not have the same commands and project configuration pages for F# projects as for C# projects. I have created a throwaway C# project, copied its app.manifest
into my F# project, and modified the <requestedExecutionLevel>
as per the issue above. Nevertheless, the .exe
still runs without administrator privileges.
So then, how do I build an F# application so that it only runs as administrator?