In a integrationtest running on Teamcity I am trying to
Using powershell I am then trying to run the webserver in the background using
start-job -name someName -scriptblock {dotnet run}
But this just gives me
16 someName BackgroundJob Completed True localhost dotnet run
But the webserver is not running and no error is outputtet
Is there another way to launch a kestrel server in the background using dotnet command?
Found a solution
But swapped to using the compiled version of the webserver instead of dotnet run
Doing this to launch my webserver build step
Start-Process .\someName.exe -NoNewWindow -PassThru
Run tests
And this to end it
Stop-Process -name YourServiceName
Works
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With