I have a C# back-end project that acts as API endpoints for my web front-end. In order to update and run the C# code, I have to stop the server, edit my code, and then start the server. Starting the server takes 2-4 minutes. So when I make a little code change I have to wait forever to see the result.
I am using Visual Studio Express for Web. In order to start the server I click the green play button next to "google chrome" in the toolbar. And to stop it I click the red stop button in the same area.
When I click the start/play button the debug console shows a bunch of lines that start with this:
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131153417505644781): Loaded 'C:\Windows\Microsoft.Net...
I think all of those are what is taking so long.
When the thing finally finishes it opens a browser window to the web root on localhost at some port. That page naturally throws a 404 because the root endpoint doesn't do anything.
I don't need to view this project in a browser. The server just needs to run and then another app on a different port calls it.
So how can I restart my code without having to wait several minutes for this server to start up?
Aucun commentaire:
Enregistrer un commentaire