I need to create an .exe file for my Winforms app that works with my web page developed with Blazor. Everything is in the same project.
If I start my project on VS2019 it will run the web and then it'll start the Winforms. Everything works fine.
But if I try to publish, the Winforms no longer opens and it seems that the web part doesn't start at all.
The Winforms app will be working on a VM and the website will be available for me locally at this moment.
I use Xampp to manage my database.
What I have tried:
- Publish both projects separately using the publish page on VS
- Publish the project as one using the publish page on VS
- I know how to create a single
.exefile for a Winforms app, so I set the configs on the.csprojfile and tried that too, but.exefile created does not start at all - I've set try/catch blocks at the beginning of the application so that maybe I could see the exception, but again, nothing happens, the loading cursor appears then stops
This is my project structure:
