There is another thing I'm really missing for .NET projects. The possibility to easily define project-specific commands. Something like "npm run <command>"
There is another thing I'm really missing for .NET projects. The possibility to easily define project-specific commands. Something like "npm run <command>"
I'm sure the tooling is better now, though. I seem to recall visual studio and/or Rider also supporting something like this natively at the time.
I am using https://github.com/dotnet-script/dotnet-script without any issues. Skipping an extra step would be cool though.
But then each script has an individual list of dependencies so there should be no need for further scoping like in npm (as in, the compilation of the script is always scoped behind the scenes). In this regard, both should be similar to https://docs.astral.sh/uv/guides/scripts/#declaring-script-d... which I absolutely love.
https://learn.microsoft.com/en-us/dotnet/core/tools/global-t...
dotnet script ../../../../../scrips/scaffold-something.cs
With npm run it works from any subdirectory: npm run scaffold-somethingsomething like
make clear-test-database
that runs every time you execute it, but is not executed on make all or make clean?