You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working in an environment where I can expect certain SDKs (like dotnet) to be installed on the host machine. I have a version control system (Perforce) that can run a specified command on the host machine when certain events happen (triggers). The command can reference files within version control, and the version control system will grab the latest version of that file to run the command. I'd love to write the trigger in C#, but I can't find a portable configuration that works with a single file. My choices seem to be:
Publish a portable DLL which requires extra configuration files to run (e.g. trigger.deps.json)
Publish a platform-specific single binary ("SelfContained" and "PublishSingleFile")
Describe the solution you'd like
I'd love to either:
Run a single csharp script directly as a console app (i.e. dotnet simpleScript.cs) -- mostly this
Have a single file portable publish configuration that still requires the runtime installed but works with just one file
Additional context
This is basically a "let me use a dotnet/csharp script instead of python" in situations that expect a single file to be functional. I can imagine extending this to #! style console scripts, which I for one would enjoy writing in csharp instead of other languages. Granted compilation will require some amount of startup time, but plenty of systems are compiling python today anyway. This seems like a natural extension of the Top-Level Statements mindset.
The text was updated successfully, but these errors were encountered:
I am working in an environment where I can expect certain SDKs (like dotnet) to be installed on the host machine. I have a version control system (Perforce) that can run a specified command on the host machine when certain events happen (triggers). The command can reference files within version control, and the version control system will grab the latest version of that file to run the command. I'd love to write the trigger in C#, but I can't find a portable configuration that works with a single file. My choices seem to be:
trigger.deps.json
)Describe the solution you'd like
I'd love to either:
dotnet simpleScript.cs
) -- mostly thisAdditional context
This is basically a "let me use a dotnet/csharp script instead of python" in situations that expect a single file to be functional. I can imagine extending this to #! style console scripts, which I for one would enjoy writing in csharp instead of other languages. Granted compilation will require some amount of startup time, but plenty of systems are compiling python today anyway. This seems like a natural extension of the Top-Level Statements mindset.
The text was updated successfully, but these errors were encountered: