dotnet / dotnet/sdk

#! like support for file-based apps on windows?

Open
#51,742 6 comments 0 reactions 0 assignees View on GitHub
Area-run-file untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.