'Running a ASP.NET Core console app under a specific user
I have a ASP.NET Core 5 Web API console application. When I run it it runs under the current Windows user. How can I change it to a different user on the local machine by providing a user and a password? The intention is to do it from within the application and not by choosing "run as different user" in windows every time.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
