I\'m trying to run the program I\'m debugging as a different user. Now, this can be done by running the exe and attaching from Visual Studio, but this is cumbersome.
You can open your command prompt as the intended user:
You will be prompted with login and password
Once CommandP Prompt starts you can double check which user you are running as by the command whoami
.
Now you can change directory to your project and run
dotnet run