Anks404
Anks404

Reputation: 11

Is it possible to compile a single C# code file with .NET 8 or C# 12

We can build and run a single file C# code with mono compiler up to C# 6. But for latest C# version - C# 12 - Mono doesn't have support for it. So, is there a way we can run a single file C# code with .NET 8?

I know we can build a simple console project, but I want to know if we can do it without creating a project or .csproj file.

Upvotes: 0

Views: 217

Answers (0)

Related Questions