Nix-shell shebang: Difference between revisions

YoshiRulz (talk | contribs)
C#: New section
YoshiRulz (talk | contribs)
m C#: They improved the CLI in preview 6
Line 36: Line 36:
=== C# ===
=== C# ===


Using <code>dotnet run app.cs</code>, new in .NET 10:
Using file-based apps, new in .NET 10:


<syntaxHighlight lang="csharp">
<syntaxHighlight lang="csharp">
#!/usr/bin/env nix-shell
#!/usr/bin/env nix-shell
/*
/*
#! nix-shell -i "dotnet run" -p dotnetCorePackages.dotnet_10.sdk
#! nix-shell -i dotnet -p dotnetCorePackages.dotnet_10.sdk
*/
*/
#:package Humanizer@2.14.1
#:package Humanizer@2.14.1