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
{{ message }}
This repository was archived by the owner on Dec 3, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 3, 2025. It is now read-only.
expand capabilities for using dotnet try with URLs #217
Currently, dotnet try --uri <uri> will allow you to try a URI or relative file path, showing the content of the file. It doesn't work with a directory (see #216).
Meanwhile, dotnet try <dir> does work with a target directory.
These behaviors should be unified and the --uri option removed in order to make the interface simpler and more consistent.
Additionally, we should add support for a few more scenarios, so that the total set of behaviors is as follows:
dotnet try /samples/dir: Launch dotnet try in the target directory.
dotnet try /samples/dir/readme.md: Launch the specified file in dotnet try.
dotnet try https://github.com/some/repo/wiki/overview: Launch the content at the specified URL in dotnet try.
dotnet try https://github.com/some/repo: Pull the latest code from the target repo and launch dotnet try in the directory into which the repo was downloaded.
dotnet try https://github.com/dotnet/samples/tree/master/csharp/language-reference/operators: Pull the latest code from the target repo and launch dotnet try in the appropriate subdirectory.
Same as the other GitHub examples but at specific commits.
dotnet try https://t.co/O2jvlmWlhL: Resolve the shortened URL and then perform the appropriate action from the above list.
changed the title [-]expand capabilities of dotnet try --uri, unify with dotnet try <arg> [/-][+]expand capabilities for using dotnet try with URLs[/+]on Jun 3, 2019
Activity
[-]expand capabilities of dotnet try --uri, unify with dotnet try <arg> [/-][+]expand capabilities for using dotnet try with URLs[/+]