C#C
C#2y ago
5 replies
revig

✅ Compiling C# file individually

hi, it would be great if anyone could tell me a way to compile C# code directly from 'csc' compiler and I want to use the latest version of compiler. The old version works by: csc filename.cs
The .NET now seem to have C# compiler stored as 'csc.dll' and I can't directly call it from terminal to compile my C# files. What could be the solution?

I've been doing this....1st compiled the '.cs' file and executes the '.exe' file:
Screenshot_2024-02-01_231035.png
Screenshot_2024-02-01_231051.png
Was this page helpful?