runcs 0.5.1
Suggested Alternatives
Additional Details
Package has been renamed to match the dotnet feature known as `runfile` now.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet tool install --global runcs --version 0.5.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local runcs --version 0.5.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=runcs&version=0.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package runcs --version 0.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Run C# code programs from git repos on GitHub, GitLab and Azure DevOps.
Usage:
[dnx] runcs [--aot] [--alias ALIAS] <repoRef> [<appArgs>...]
Arguments:
<REPO_REF> Reference to remote file to run, with format [host/]owner/repo[@ref][:path]
host optional host name ([gist.]github.com|gitlab.com|dev.azure.com, default: github.com)
@ref optional branch, tag, or commit (default: default branch)
:path optional path to file in repo (default: program.cs at repo root)
Examples:
* kzu/sandbox@v1.0.0:run.cs (implied host github.com, explicit tag and file path)
* gitlab.com/kzu/sandbox@main:run.cs (all explicit parts)
* kzu/sandbox (implied host github.com, ref and path defaults)
Can be an alias previously set with --alias.
<appArgs> Arguments passed to the C# program that is being run.
Options:
--aot (optional) Enable dotnet AOT defaults for run file.cs. Defaults to false.
--alias ALIAS (optional) Assign an alias on first usage which can be used instead of the full ref.
Example:
dnx runcs kzu/runcs@v1:run.cs dotnet rocks
View source:
#:package Spectre.Console@*
using Spectre.Console;
AnsiConsole.MarkupLine($"Hello world from [green]dnx[/] [yellow]gist[/] :rocket: [bold italic]{string.Join(' ', args)}[/]");
The repo does not need to be public. In that case, the same authentication
used by your local git will be used to access the gist, via the Git Credential Manager.
When running different files from the same repo+ref, the download will be performed only once. The last download etag is used to avoid downloading on each run.
Sponsors
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|
