dotnetdev
❔ dotnet vs C#
I'm using dotnet and C# for 5 years now, I have worked on many projects. but still have that one questions, and I fell newbie when I ask that in any place but I have never found any reasonable answer to that.
I have used python, java, C++, C, javascript, php. all of those languages can be used without any framework. Like for java, we can use that alone, or we can use that in springboot or other frameworks. but for C#, I have never seen that we can use C# without .NET. it seems like it is tied to .NET, and we can't use that outside .NET umbrella.
For example, I want to use a cli app with C#, and compile directly C# without involving dotnet. Can I do so? why Base libraries are in dotnet, does this means we can't use C# without dotnet.
10 replies
❔ Debugging asp.net core app from vscode
I am debugging asp.net core webapi from vscode, one endpoint is returning 404. when I trigger api from postman or swagger, it is not going to any breakpoint and directly returns 404. my questions is, what is the very first line of code that I should put breakpoint to get after triggering request from postman or swagger. Action method on Controller is not the first point for breakpoint, because some status returns even before them.
I found a library for debugging endpoints,
routes debugger
, but it doesn't works on dotnet 7. but why should we use library, can't wait do that with debuggers.26 replies