{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/8485","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/8485/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/8485/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/8485/events","html_url":"https://github.com/dotnet/cli/issues/8485","id":292022557,"node_id":"MDU6SXNzdWUyOTIwMjI1NTc=","number":8485,"title":"Cannot install prereleased tool package from dotnet-install-tool without specifying the exact version","user":{"login":"natemcmaster","id":2696087,"node_id":"MDQ6VXNlcjI2OTYwODc=","avatar_url":"https://avatars0.githubusercontent.com/u/2696087?v=4","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"labels":[{"id":813202779,"node_id":"MDU6TGFiZWw4MTMyMDI3Nzk=","url":"https://api.github.com/repos/dotnet/cli/labels/tool","name":"tool","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":{"login":"peterhuene","id":509666,"node_id":"MDQ6VXNlcjUwOTY2Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/509666?v=4","gravatar_id":"","url":"https://api.github.com/users/peterhuene","html_url":"https://github.com/peterhuene","followers_url":"https://api.github.com/users/peterhuene/followers","following_url":"https://api.github.com/users/peterhuene/following{/other_user}","gists_url":"https://api.github.com/users/peterhuene/gists{/gist_id}","starred_url":"https://api.github.com/users/peterhuene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterhuene/subscriptions","organizations_url":"https://api.github.com/users/peterhuene/orgs","repos_url":"https://api.github.com/users/peterhuene/repos","events_url":"https://api.github.com/users/peterhuene/events{/privacy}","received_events_url":"https://api.github.com/users/peterhuene/received_events","type":"User","site_admin":false},"assignees":[{"login":"peterhuene","id":509666,"node_id":"MDQ6VXNlcjUwOTY2Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/509666?v=4","gravatar_id":"","url":"https://api.github.com/users/peterhuene","html_url":"https://github.com/peterhuene","followers_url":"https://api.github.com/users/peterhuene/followers","following_url":"https://api.github.com/users/peterhuene/following{/other_user}","gists_url":"https://api.github.com/users/peterhuene/gists{/gist_id}","starred_url":"https://api.github.com/users/peterhuene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterhuene/subscriptions","organizations_url":"https://api.github.com/users/peterhuene/orgs","repos_url":"https://api.github.com/users/peterhuene/repos","events_url":"https://api.github.com/users/peterhuene/events{/privacy}","received_events_url":"https://api.github.com/users/peterhuene/received_events","type":"User","site_admin":false},{"login":"wli3","id":6993335,"node_id":"MDQ6VXNlcjY5OTMzMzU=","avatar_url":"https://avatars1.githubusercontent.com/u/6993335?v=4","gravatar_id":"","url":"https://api.github.com/users/wli3","html_url":"https://github.com/wli3","followers_url":"https://api.github.com/users/wli3/followers","following_url":"https://api.github.com/users/wli3/following{/other_user}","gists_url":"https://api.github.com/users/wli3/gists{/gist_id}","starred_url":"https://api.github.com/users/wli3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wli3/subscriptions","organizations_url":"https://api.github.com/users/wli3/orgs","repos_url":"https://api.github.com/users/wli3/repos","events_url":"https://api.github.com/users/wli3/events{/privacy}","received_events_url":"https://api.github.com/users/wli3/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/cli/milestones/23","html_url":"https://github.com/dotnet/cli/milestone/23","labels_url":"https://api.github.com/repos/dotnet/cli/milestones/23/labels","id":3439375,"node_id":"MDk6TWlsZXN0b25lMzQzOTM3NQ==","number":23,"title":"3.0.1xx","description":"","creator":{"login":"livarcocc","id":367554,"node_id":"MDQ6VXNlcjM2NzU1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/367554?v=4","gravatar_id":"","url":"https://api.github.com/users/livarcocc","html_url":"https://github.com/livarcocc","followers_url":"https://api.github.com/users/livarcocc/followers","following_url":"https://api.github.com/users/livarcocc/following{/other_user}","gists_url":"https://api.github.com/users/livarcocc/gists{/gist_id}","starred_url":"https://api.github.com/users/livarcocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livarcocc/subscriptions","organizations_url":"https://api.github.com/users/livarcocc/orgs","repos_url":"https://api.github.com/users/livarcocc/repos","events_url":"https://api.github.com/users/livarcocc/events{/privacy}","received_events_url":"https://api.github.com/users/livarcocc/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":12,"state":"open","created_at":"2018-06-20T17:23:30Z","updated_at":"2018-08-10T17:30:35Z","due_on":null,"closed_at":null},"comments":45,"created_at":"2018-01-26T20:30:18Z","updated_at":"2018-08-13T22:04:07Z","closed_at":null,"author_association":"MEMBER","body":"To install a prerelease version of a CLI tool, users must know the exact version they want to install. This means they have to open a browser to nuget.org or myget.org to find the package.\r\n\r\nFor example, this is the console output for dotnet-watch\r\n```\r\n> dotnet install tool --global dotnet-watch --source https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json\r\nInstall failed. Failed to download package:\r\nNuGet returned:\r\n\r\nFailed to restore package.\r\nWorkingDirectory:\r\nArguments: restore C:\\Users\\namc\\AppData\\Local\\Temp\\0rc552nv.kmy\\wjh4elju.lgh.csproj --source https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json --runtime win10-x64 /p:BaseIntermediateOutputPath=\\\"C:\\Users\\namc\\.dotnet\\tools\\dotnet-watch\\gx5ifack.dyr\\\"\r\nOutput:   Restoring packages for C:\\Users\\namc\\AppData\\Local\\Temp\\0rc552nv.kmy\\wjh4elju.lgh.csproj...\r\nC:\\Users\\namc\\AppData\\Local\\Temp\\0rc552nv.kmy\\wjh4elju.lgh.csproj : error NU1103: Unable to find a stable package dotnet-watch with version\r\n\r\nC:\\Users\\namc\\AppData\\Local\\Temp\\0rc552nv.kmy\\wjh4elju.lgh.csproj : error NU1103:   - Found 124 version(s) in https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json [ Nearest version: 2.1.0-preview1-27934 ]\r\nC:\\Users\\namc\\AppData\\Local\\Temp\\0rc552nv.kmy\\wjh4elju.lgh.csproj : error NU1103:   - Found 1 version(s) in C:\\Users\\namc\\.dotnet\\x64\\sdk\\NuGetFallbackFolder [ Nearest version: 2.1.0-preview1-28124 ]\r\n  Restore failed in 680.98 ms for C:\\Users\\namc\\AppData\\Local\\Temp\\0rc552nv.kmy\\wjh4elju.lgh.csproj.\r\n\r\nUsage: dotnet install tool [options] <PACKAGE_ID>\r\n\r\nArguments:\r\n  <PACKAGE_ID>   NuGet Package Id of the tool to install.\r\n\r\nOptions:\r\n  -g, --global        Install user wide.\r\n  --version           Version of the tool package in NuGet.\r\n  --configfile        The NuGet configuration file to use.\r\n  --source <SOURCE>   Specifies a NuGet package source to use during installation.\r\n  -f, --framework     The target framework to install the tool for.\r\n  -h, --help          Show help information.\r\n```\r\n\r\nThis is the console output when trying to specify `--version 2.1.0-*`\r\n```\r\n> dotnet install tool --global dotnet-watch --version 2.1.0-* --source https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json\r\nSystem.ArgumentException: Illegal characters in path.\r\nParameter name: path\r\n   at System.IO.Path.GetFullPath(String path)\r\n   at System.IO.Directory.CreateDirectory(String path)\r\n   at Microsoft.DotNet.ToolPackage.ToolPackageObtainer.EnsureDirectoryExists(DirectoryPath path)\r\n   at Microsoft.DotNet.ToolPackage.ToolPackageObtainer.CreateIndividualToolVersionDirectory(String packageId, PackageVersion packageVersion)\r\n\r\n   at Microsoft.DotNet.ToolPackage.ToolPackageObtainer.ObtainAndReturnExecutablePath(String packageId, String packageVersion, Nullable`1 nugetconfig, String targetframework, String source)\r\n   at Microsoft.DotNet.Tools.Install.Tool.InstallToolCommand.ObtainPackage(DirectoryPath executablePackagePath, DirectoryPath offlineFeedPath)\r\n   at Microsoft.DotNet.Tools.Install.Tool.InstallToolCommand.Execute()\r\n   at Microsoft.DotNet.Cli.DotNetTopLevelCommandBase.RunCommand(String[] args)\r\n   at Microsoft.DotNet.Tools.Install.InstallCommand.Run(String[] args)\r\n   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)\r\n   at Microsoft.DotNet.Cli.Program.Main(String[] args)\r\n```\r\n\r\n*Ideas*\r\n\r\n- Support wildcards `--version 2.1.0-*`\r\n- Support a `--prerelease` flag\r\n\r\ncc @KathleenDollard \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/412680767","html_url":"https://github.com/dotnet/cli/issues/8485#issuecomment-412680767","issue_url":"https://api.github.com/repos/dotnet/cli/issues/8485","id":412680767,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjY4MDc2Nw==","user":{"login":"wli3","id":6993335,"node_id":"MDQ6VXNlcjY5OTMzMzU=","avatar_url":"https://avatars1.githubusercontent.com/u/6993335?v=4","gravatar_id":"","url":"https://api.github.com/users/wli3","html_url":"https://github.com/wli3","followers_url":"https://api.github.com/users/wli3/followers","following_url":"https://api.github.com/users/wli3/following{/other_user}","gists_url":"https://api.github.com/users/wli3/gists{/gist_id}","starred_url":"https://api.github.com/users/wli3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wli3/subscriptions","organizations_url":"https://api.github.com/users/wli3/orgs","repos_url":"https://api.github.com/users/wli3/repos","events_url":"https://api.github.com/users/wli3/events{/privacy}","received_events_url":"https://api.github.com/users/wli3/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T22:04:07Z","updated_at":"2018-08-13T22:04:07Z","author_association":"COLLABORATOR","body":"There should be a similar issue"}}
{"actor":{"display_login":"wli3"}}