This is probably not the first time someone asks this but whatever. The #! hack on linux is great we can all agree on that, it's pretty simple and fun to use, maybe even soooo useful to put somewhere in the PATH directory.
But what about windows? Can I somehow build one single file based app in one .exe file? Only guess for now is to use workarounds like .cmd files in big 2025 if i want to just type myapp.cmd myargument1 myargument2 which runs dotnet run myapp.cs <...> in the middle. But maybe im wrong?
This is probably not the first time someone asks this but whatever. The
#!hack on linux is great we can all agree on that, it's pretty simple and fun to use, maybe even soooo useful to put somewhere in the PATH directory.But what about windows? Can I somehow build one single file based app in one .exe file? Only guess for now is to use workarounds like
.cmdfiles in big 2025 if i want to just typemyapp.cmd myargument1 myargument2which runsdotnet run myapp.cs <...>in the middle. But maybe im wrong?