← Back to context

Comment by Salgat

4 days ago

https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-...

https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-...

"dotnet run app.cs" natively supports shebang lines and nugets. The only requirement is to make sure the .net sdk is installed on your computer.

I'm guessing, however that using nuget packages means having at least a .csproj file near your .cs file with the packages defined. And downloading the packages, compiling to a space under the .csproj path, similar to a node_modules directory (bin and obj for .Net).

What I like about Deno, is the packages are downloaded/cached to a shared location not next to your script, and you don't need additional files configured. At least for shell scripts.

I'm glad shebang works, that will actually help with some process checking I'm wanting to do from CLI without launching my entire services around it.