C
C#16mo ago
M B V R K

❔ 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 <3
16 Replies
Denis
Denis16mo ago
This means that you have some incompilable code in your EventSourceService project Any reason why you are using VSCode instead of VS Community 2022?
M B V R K
M B V R KOP16mo ago
What do you mean ?
Denis
Denis16mo ago
That you might have written something with an incorrect syntax, for example or there is a missing dependency
M B V R K
M B V R KOP16mo ago
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 fine
Denis
Denis16mo ago
and you can build it without any issues?
M B V R K
M B V R KOP16mo ago
yeah really it deservs a try from you, you will remember me
Denis
Denis16mo ago
huh?
M B V R K
M B V R KOP16mo ago
but it needs at least 3 months or more of using
Denis
Denis16mo ago
dotnet build command - .NET CLI
The dotnet build command builds a project and all of its dependencies.
Denis
Denis16mo ago
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
Denis
Denis16mo ago
dotnet run command - .NET CLI
The dotnet run command provides a convenient option to run your application from the source code.
M B V R K
M B V R KOP16mo ago
When I use dotnet run it works fine but it gives a Warnning
M B V R K
M B V R KOP16mo ago
M B V R K
M B V R KOP16mo ago
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 cause
Denis
Denis16mo ago
The configuration of VSCode for running debug, I suppose
Accord
Accord16mo ago
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.
Want results from more Discord servers?
Add your server