{"action":"closed","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/5783","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/5783/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/5783/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/5783/events","html_url":"https://github.com/NuGet/Home/issues/5783","id":251599409,"number":5783,"title":"non compliant behavior on update","user":{"login":"smalldek","id":4153926,"avatar_url":"https://avatars3.githubusercontent.com/u/4153926?v=4","gravatar_id":"","url":"https://api.github.com/users/smalldek","html_url":"https://github.com/smalldek","followers_url":"https://api.github.com/users/smalldek/followers","following_url":"https://api.github.com/users/smalldek/following{/other_user}","gists_url":"https://api.github.com/users/smalldek/gists{/gist_id}","starred_url":"https://api.github.com/users/smalldek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smalldek/subscriptions","organizations_url":"https://api.github.com/users/smalldek/orgs","repos_url":"https://api.github.com/users/smalldek/repos","events_url":"https://api.github.com/users/smalldek/events{/privacy}","received_events_url":"https://api.github.com/users/smalldek/received_events","type":"User","site_admin":false},"labels":[{"id":171462729,"url":"https://api.github.com/repos/NuGet/Home/labels/ClosedAs:WontFix","name":"ClosedAs:WontFix","color":"006b75","default":false},{"id":470174128,"url":"https://api.github.com/repos/NuGet/Home/labels/Style:Packages.Config","name":"Style:Packages.Config","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/63","html_url":"https://github.com/NuGet/Home/milestone/63","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/63/labels","id":2556958,"number":63,"title":"4.4","description":null,"creator":{"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},"open_issues":84,"closed_issues":68,"state":"open","created_at":"2017-06-01T19:05:07Z","updated_at":"2017-08-21T23:56:59Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-08-21T09:26:05Z","updated_at":"2017-08-21T23:56:59Z","closed_at":"2017-08-21T23:56:59Z","body":"nuget update does not conform to the documentation regarding the modifications to the project file. Documentation states that\r\n\r\n>  'The update command also updates assembly references in the project file, **provided those references already exist**.'\r\n\r\n but it removes the references and install the new package instead. It results in unused references in the csproj.\r\nExpected behavior would be that only existing references are modified (i.e. updated version number in path and assembly name).\r\n\r\n## Details about Problem\r\nNuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe): NuGet.exe\r\nNuGet version (x.x.x.xxx): 4.1.0.2450\r\nOS version (i.e. win10 v1607 (14393.321)): Win 8.1 Pro\r\n\r\n\r\n## Detailed repro steps so we can see the same problem\r\n1. Create a package containing more than one assemblies in 'lib' folder\r\n2. Install the package inside a .NET project\r\n3. Remove all added references but one\r\n4. Publish a new version of the package (no need to have actual changes, just increase version number)\r\n5. Launch nuget update on the project\r\nThe resulting .csproj contains references to all assemblies from the package."}}
{"actor":{"display_login":"rrelyea"}}