Skip to content

Instantly share code, notes, and snippets.

@WeihanLi
Last active March 2, 2024 20:23
Show Gist options
  • Save WeihanLi/7b4032a32f1a25c5f2d84b6955fa83f3 to your computer and use it in GitHub Desktop.
Save WeihanLi/7b4032a32f1a25c5f2d84b6955fa83f3 to your computer and use it in GitHub Desktop.
dotnet-exec test script
Console.WriteLine($"Current date: {DateTime.Now.Date: yyyy-MM-dd}");
@WeihanLi
Copy link
Author

WeihanLi commented Mar 2, 2024

Use the dotnet tool(install with dotnet tool update -g dotnet-execute):

dotnet-exec "https://gist.github.com/WeihanLi/7b4032a32f1a25c5f2d84b6955fa83f3"

Use the container image:

docker run --rm --pull=always weihanli/dotnet-exec:latest "https://gist.github.com/WeihanLi/7b4032a32f1a25c5f2d84b6955fa83f3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment