I am running an application in Visual Studio with around 50+ microservices. All the microservices starts in on windows terminal as different tabs. The problem is that when i start my app this windows terminal will gain focus everytime something is happening in that windows terminal so i can basically not do anything for about 1 minute. Is there a way to tell windows terminal not to gain focus? Or maybe there is another way run the microservices?
Thanks
I tried different settings in windows terminal but nothing seems to work there.
What's happening here is your microservices are all console applications, and Windows determined that they want a visible console window, so Windows is going to create a terminal for them. It's going to use the "default terminal application" to host these console apps, which I'm suspecting you have set to Windows Terminal. WT is then creating tabs for the incoming console apps, then the apps run and exit, closing the tab in the Terminal.
You've got a couple possible solutions:
I'd really recommend the first though - asking users to change their default terminal is probably not the most polite thing to do. Plus, if you can avoid allocating a console host window just to run a process that doesn't really need one, you probably should.