{"action":"opened","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/1136","labels_url":"https://api.github.com/repos/NuGet/Home/issues/1136/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/1136/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/1136/events","html_url":"https://github.com/NuGet/Home/issues/1136","id":99654023,"number":1136,"title":"NuGet.exe 2.8.60717.93 and VS extension 2.8.60723.765 NullReferenceException if package ID and Title are not the same","user":{"login":"claq2","id":1678300,"avatar_url":"https://avatars.githubusercontent.com/u/1678300?v=3","gravatar_id":"","url":"https://api.github.com/users/claq2","html_url":"https://github.com/claq2","followers_url":"https://api.github.com/users/claq2/followers","following_url":"https://api.github.com/users/claq2/following{/other_user}","gists_url":"https://api.github.com/users/claq2/gists{/gist_id}","starred_url":"https://api.github.com/users/claq2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claq2/subscriptions","organizations_url":"https://api.github.com/users/claq2/orgs","repos_url":"https://api.github.com/users/claq2/repos","events_url":"https://api.github.com/users/claq2/events{/privacy}","received_events_url":"https://api.github.com/users/claq2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-07T14:01:47Z","updated_at":"2015-08-07T14:01:47Z","closed_at":null,"body":"It looks like this version of NuGet.exe creates the nupkg file in Nuget\\Cache with the Title value and then looks for it with the ID value. This may be limited to interactions with Artifactory 4.0.0.\r\n\r\nRecreation steps (or how I ran into this problem):\r\n1. Install https://www.nuget.org/packages/System.Management.Automation/6.1.7601.17515 in a C# project.\r\n2. Upload the cached nupkg into an Artifactory 4.0.0 instance (System.Management.Automation.6.1.7601.17515.nupkg)\r\n3. Delete the cached nupkg file.\r\n4. Delete the solution's packages\\System.Management.Automation.6.1.7601.17515 folder.\r\n5. Build->Clean Solution.\r\n6. Enable package restore.\r\n7. Edit the solution's .nuget\\Nuget.targets file to only use your Artifactory source. I.e. uncomment one of the PackageSource lines and change it to your Artifactory Nuget base URL.\r\n8. Build the project.\r\n5. VS will report that Nuget exited with code 1 and an \"Object reference not set to an instance of an object\" error.\r\n7. Try building the solution with MsBuild.exe.\r\n8. Nuget.exe will report the same error.\r\n\r\nIn that package's nuspec file the ID is System.Management.Automation and the Title is System.Management.Automation.dll. I tried editing the package's properties in Artifactory, but I gather that NuGet doesn't use those values for creating the cached package.\r\n\r\nI got around this bug by:\r\n1. unzipping the nupkg file\r\n2. changing the Title to match the ID in the nuspec file\r\n3. re-packing it\r\n4. replacing the package in Artifactory"}}