C
C#2y ago
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.
4 Replies
Jayy
Jayy2y ago
You can use c# without dotnet kinda, you can use mono as a runtime if you want Idk why you'd want to do that now adays but you can Idk what ur Java point is, you need the jvm to run java code just like you need dotnet for c# Java and c# have basically identical compilation and execution models*
base libraries are in dotnet
No they aren't, BCL is written in c# and compiled to IL It can be used from any runtime that can execute IL
Monsieur Wholesome
Scott Hanselman
YouTube
What is .NET? What's C# and F#? What's the .NET Ecosystem? .NET Cor...
What is .NET? What is C# and F#? What is .NET Core? What's the .NET Ecosystem? What can you build? You have questions and we have answers. More videos at http://dot.net/videos
Monsieur Wholesome
This probably clears up many of your questions
Accord
Accord2y 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.