{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/6640","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/6640/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/6640/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/6640/events","html_url":"https://github.com/NuGet/Home/issues/6640","id":302493493,"number":6640,"title":"Reference latest version of nuget package using PackageReference msbuild tag","user":{"login":"TFTomSun","id":5387192,"avatar_url":"https://avatars3.githubusercontent.com/u/5387192?v=4","gravatar_id":"","url":"https://api.github.com/users/TFTomSun","html_url":"https://github.com/TFTomSun","followers_url":"https://api.github.com/users/TFTomSun/followers","following_url":"https://api.github.com/users/TFTomSun/following{/other_user}","gists_url":"https://api.github.com/users/TFTomSun/gists{/gist_id}","starred_url":"https://api.github.com/users/TFTomSun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TFTomSun/subscriptions","organizations_url":"https://api.github.com/users/TFTomSun/orgs","repos_url":"https://api.github.com/users/TFTomSun/repos","events_url":"https://api.github.com/users/TFTomSun/events{/privacy}","received_events_url":"https://api.github.com/users/TFTomSun/received_events","type":"User","site_admin":false},"labels":[{"id":247638790,"url":"https://api.github.com/repos/NuGet/Home/labels/ClosedAs:NotRepro","name":"ClosedAs:NotRepro","color":"006b75","default":false},{"id":180116592,"url":"https://api.github.com/repos/NuGet/Home/labels/Type:Feature","name":"Type:Feature","color":"207de5","default":false},{"id":784347815,"url":"https://api.github.com/repos/NuGet/Home/labels/WaitingForCustomer","name":"WaitingForCustomer","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-05T22:42:01Z","updated_at":"2018-05-07T22:03:36Z","closed_at":"2018-04-13T22:15:48Z","author_association":"NONE","body":"NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):\r\n\r\nNuGet version (x.x.x.xxx):\r\n 4.5.0.4685\r\n\r\ndotnet.exe --version (if appropriate):\r\n\r\nVS version (if appropriate):\r\n15.5.7\r\n\r\nOS version (i.e. win10 v1607 (14393.321)):\r\nWindows 10.0.16299 Build 16299\r\n\r\n\r\nWorked before? If so, with which NuGet version:\r\n\r\n## Detailed repro steps so we can see the same problem\r\n\r\nI would like to automatically reference the latest available nuget packages with csproj files using the new PackageReference tag.\r\nI tried:\r\n```\r\n<PackageReference Include=\"Selenium.WebDriver\" Version=\"*\" />\r\n<PackageReference Include=\"Selenium.WebDriver\" Version=\"Highest\" />\r\n<PackageReference Include=\"Selenium.WebDriver\" Version=\"latest\" />\r\n```\r\n\r\nHowever none of the above lines work as expected:\r\n* Restore the latest version\r\n* build against the latest version\r\n\r\nIs there any way to force nuget to always take the latest available version of a nuget package?\r\n"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/387220977","html_url":"https://github.com/NuGet/Home/issues/6640#issuecomment-387220977","issue_url":"https://api.github.com/repos/NuGet/Home/issues/6640","id":387220977,"user":{"login":"nkolev92","id":2878341,"avatar_url":"https://avatars1.githubusercontent.com/u/2878341?v=4","gravatar_id":"","url":"https://api.github.com/users/nkolev92","html_url":"https://github.com/nkolev92","followers_url":"https://api.github.com/users/nkolev92/followers","following_url":"https://api.github.com/users/nkolev92/following{/other_user}","gists_url":"https://api.github.com/users/nkolev92/gists{/gist_id}","starred_url":"https://api.github.com/users/nkolev92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkolev92/subscriptions","organizations_url":"https://api.github.com/users/nkolev92/orgs","repos_url":"https://api.github.com/users/nkolev92/repos","events_url":"https://api.github.com/users/nkolev92/events{/privacy}","received_events_url":"https://api.github.com/users/nkolev92/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T22:03:36Z","updated_at":"2018-05-07T22:03:36Z","author_association":"MEMBER","body":"@nickrandolph \r\nNo luck. \r\nThere should be nothing special in the resolution logic in NuGet there. \r\nNuGet just treats * as a * regardless of the project type. \r\nOnly case where things would be different would be duplicate references or targets updating the package version, which is out of NuGet's control. "}}
{"actor":{"display_login":"nkolev92"}}