My C# .NET console application opens my web browser when Debugging, as well as the console itself. How can I set the project such that only the console opens, and not the browser?
1 Answer
The issue is being caused by the project type GUID of the project file still being set to a web application, even though the project output is set to "Exe".
The .csproj file (not the .csproj.user file) will need to be manually edited to change the project type GUID to {36761217-1D8E-4C0F-9A00-B86D9D12B086} so that Visual studio will recognise the project as a C# application and not a web project, and will therefore not attempt to open a browser when the project is debugged.
.csproj.userwas changed from Web Application to C#.userfile? What about the actual.csprojfile. The user file is your local settings only. It might be conflicting.