Visual studio is launching the browser because it assumes you are debugging a website. Just edit the launch settings.
How to write C# based Azure Container without starting a Web
Hi all. I need to write an app that connects to a third-party vendor application via a Web Socket. I am using C# in Visual Studio 2022 to write my app. I have it running in my Visual Studio locally.
My question: how do I suppress the website window from popping up? My app does not need Web Site to be up and running. It is supposed to run all day long listening to a third-party vendor application for changes.
My main looks like this (for now I am using thread sleep to keep app from existing) - but still browser keeps popping up on the app startup - docker must be doing something.
public static void Main(string[] args)
{
VendorSocketSession vendor = new VendorSocketSession();
vendor.Run();
``` while (true) {
```sql
Thread.Sleep(1000);
}
```}