❔ ASP.NET Core 7 Web API won't start from VS Code
Hi friends,
I'm working on a Microservices project, I have a
Microservice
called EventSourcererService
as an ASP.NET Core 7 API
project, everything is okay except when i try to start it using VS Code
it started bu show nothing, as expected it must be go to the Swagger
url when it started but as you can watch in the attached video the project lokos like started but not show anything.
The other services/projects starts fine without any problem.
Watch the attached video to understand,
Please anyone faced this issue before provide me a help and massive thanks in advance <316 Replies
This means that you have some incompilable code in your
EventSourceService
project
Any reason why you are using VSCode instead of VS Community 2022?What do you mean ?
That you might have written something with an incorrect syntax, for example
or there is a missing dependency
hmmm, actually it is light wight and super faster than
VS
also many extensions that makes my work easier not like VS
When I start this project from VS 2022
it starts fineand you can build it without any issues?
yeah
really it deservs a try from you, you will remember me
huh?
but it needs at least 3 months or more of using
Try and build it manually using
dotnet build
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-build#examplesdotnet build command - .NET CLI
The dotnet build command builds a project and all of its dependencies.
I personally use JetBrains Rider. I've used VS Code for .NET development for some time, it was quite horrible for real project development. It is fine for some quick edits and reviews
dotnet run command - .NET CLI
The dotnet run command provides a convenient option to run your application from the source code.
When I use
dotnet run
it works fine but it gives a Warnning
I was using the
Jetbrains Rider
I liked it, but when I gave a chance to VS Code
bruuh I got what I was wishing
I worked on big projects using only VS Code
the power of it is the Extensions
Oh fuck it works now, when i started the project manually using dotnet run
then I stoped it and clicked on the debugg
button in VS Code
it works fine
hmmm the issue is fixed but I don't really know what was exactly the causeThe configuration of VSCode for running debug, I suppose
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.