{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/6468","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/6468/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/6468/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/6468/events","html_url":"https://github.com/NuGet/Home/issues/6468","id":290132566,"number":6468,"title":"[vsfeedback] Nuget get error \"This collection is read-only\" while install/restore package","user":{"login":"vsfeedback","id":32854332,"avatar_url":"https://avatars3.githubusercontent.com/u/32854332?v=4","gravatar_id":"","url":"https://api.github.com/users/vsfeedback","html_url":"https://github.com/vsfeedback","followers_url":"https://api.github.com/users/vsfeedback/followers","following_url":"https://api.github.com/users/vsfeedback/following{/other_user}","gists_url":"https://api.github.com/users/vsfeedback/gists{/gist_id}","starred_url":"https://api.github.com/users/vsfeedback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsfeedback/subscriptions","organizations_url":"https://api.github.com/users/vsfeedback/orgs","repos_url":"https://api.github.com/users/vsfeedback/repos","events_url":"https://api.github.com/users/vsfeedback/events{/privacy}","received_events_url":"https://api.github.com/users/vsfeedback/received_events","type":"User","site_admin":false},"labels":[{"id":270095664,"url":"https://api.github.com/repos/NuGet/Home/labels/Investigate","name":"Investigate","color":"006b75","default":false},{"id":171462723,"url":"https://api.github.com/repos/NuGet/Home/labels/Priority:0","name":"Priority:0","color":"fbca04","default":false},{"id":872550848,"url":"https://api.github.com/repos/NuGet/Home/labels/Sprint%20133","name":"Sprint 133","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"jainaashish","id":18219758,"avatar_url":"https://avatars3.githubusercontent.com/u/18219758?v=4","gravatar_id":"","url":"https://api.github.com/users/jainaashish","html_url":"https://github.com/jainaashish","followers_url":"https://api.github.com/users/jainaashish/followers","following_url":"https://api.github.com/users/jainaashish/following{/other_user}","gists_url":"https://api.github.com/users/jainaashish/gists{/gist_id}","starred_url":"https://api.github.com/users/jainaashish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jainaashish/subscriptions","organizations_url":"https://api.github.com/users/jainaashish/orgs","repos_url":"https://api.github.com/users/jainaashish/repos","events_url":"https://api.github.com/users/jainaashish/events{/privacy}","received_events_url":"https://api.github.com/users/jainaashish/received_events","type":"User","site_admin":false},"assignees":[{"login":"jainaashish","id":18219758,"avatar_url":"https://avatars3.githubusercontent.com/u/18219758?v=4","gravatar_id":"","url":"https://api.github.com/users/jainaashish","html_url":"https://github.com/jainaashish","followers_url":"https://api.github.com/users/jainaashish/followers","following_url":"https://api.github.com/users/jainaashish/following{/other_user}","gists_url":"https://api.github.com/users/jainaashish/gists{/gist_id}","starred_url":"https://api.github.com/users/jainaashish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jainaashish/subscriptions","organizations_url":"https://api.github.com/users/jainaashish/orgs","repos_url":"https://api.github.com/users/jainaashish/repos","events_url":"https://api.github.com/users/jainaashish/events{/privacy}","received_events_url":"https://api.github.com/users/jainaashish/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/79","html_url":"https://github.com/NuGet/Home/milestone/79","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/79/labels","id":3027102,"number":79,"title":"4.7","description":null,"creator":{"login":"emgarten","id":6381138,"avatar_url":"https://avatars2.githubusercontent.com/u/6381138?v=4","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":159,"state":"open","created_at":"2018-01-10T22:43:25Z","updated_at":"2018-03-28T23:54:40Z","due_on":null,"closed_at":null},"comments":37,"created_at":"2018-01-19T22:58:35Z","updated_at":"2018-03-29T22:05:30Z","closed_at":null,"author_association":"NONE","body":"The problem with some package that contains dependencies like Xamarin.Forms\n\n_This issue has been moved from https://developercommunity.visualstudio.com/content/problem/169526/nuget-get-error-this-collection-is-read-only-while.html\nVSTS ticketId: 541086_\n_These are the original issue comments:_\n\nAnkit Mishra [MSFT] on ‎12‎/‎18‎/‎2017, 06:23 PM (31 days ago): <p>Thank you for your feedback! For us to investigate this further, could you please provide the following - </p><p><br></p><ol><li>A sample project that has this issue.</li><li>Exact repro steps on that sample project that we could use to repro this problem.</li></ol><p><br></p><p>We look forward to hearing from you!</p>\n\nDarrell Tunnell on ‎12‎/‎19‎/‎2017, 06:45 AM (31 days ago): Trying to update some nuget packages and am getting this error.I have attached image of output.\nSamantha Houts [MSFT] on ‎12‎/‎20‎/‎2017, 08:09 PM (29 days ago): <p>I got this with </p><p>https://developer.xamarin.com/samples/xamarin-forms/TodoLocalized/</p><p>Update the Android project's compile version to 8.0 first, then try to update the Xamarin.Android.Support libraries.</p>\n\nIbrahim Cohen on ‎12‎/‎26‎/‎2017, 00:17 PM (24 days ago): <p>Getting the same error while attempting to update xamarin packages, also getting:<br>SeverityCodeDescriptionProjectFileLineSuppression State\nErrorThis project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\\..\\packages\\Xamarin.Android.Support.v4.26.1.0.1\\build\\MonoAndroid80\\Xamarin.Android.Support.v4.targets.SolutionName.AndroidC:\\Workspace\\Sample\\App Test\\SolutionName\\SolutionName\\SolutionName.Android\\SolutionName.Android.csproj383</p>\n\n_These are the original issue solutions:_\n\nHines Vaughan solved on ‎12‎/‎26‎/‎2017, 00:37 PM (24 days ago), 1 votes: \n<p>Was receiving this issue as well just now. Went into VS settings -&gt; NuGet settings -&gt; cleared the NuGet cache, closed Visual Studio, and then I deleted all <code>obj</code> and <code>bin</code> folders.</p> \n\nIbrahim Cohen solved on ‎12‎/‎26‎/‎2017, 00:54 PM (24 days ago), 0 votes: \n<p>That worked, thank you Hines Vaughan!!</p> \n\nIgnacio Ortiz solved on ‎1‎/‎10‎/‎2018, 10:04 AM (9 days ago), 0 votes: \n<p>What worked for me was this:</p>\n<p>1. Deleted Nuget Cache on VS.</p>\n<p>2. Opened packages folder and deleted all packages and dependencies manually.</p>\n<p>3. Same thing with .csproj file and packages.config files.</p>\n<p>4. Reloaded the project again and started to install one by one the dependencies starting for the dependencies that didn't have any subsequent dependency. <strong>I installed using Nuget Package Manager and got the famous error &quot;This collection is read-only&quot;, </strong>then simply clicked again in INSTALL in Nuget and the second time it installed correctly. It's important to verify no traces of previous versions or wrong dependencies are in packages folder, packages.config file and .csproj file.</p>\n\n<p>That's it. Hope it helps.</p> \n\nPaul Diston solved on ‎1‎/‎12‎/‎2018, 07:15 AM (7 days ago), 0 votes: \n<p>I am experiencing this problem again today however clearing the NuGet cache, deleting all obj and bin directories and clearing the Packages directory do not seem to be working.</p>\n\n<p>Update: After further investigation, I have got the This collection is read-only because I was trying to install Xamarin.Forms via NuGet however the reference was already added after I added a reference to another project that already had Xamarin.Forms installed.</p> \n\nPaul Diston on ‎1‎/‎12‎/‎2018, 08:10 AM (7 days ago): \n<p>Update 2: The above update seems to be incorrect, I am still getting This collection is read-only, even when the project I am trying to install Xamarin.Forms into does not reference other projects.</p> \n\nHines Vaughan on ‎1‎/‎12‎/‎2018, 08:36 AM (7 days ago): \n<p>Have you tried using Package Manager Console window instead of the normal NuGet GUI window in VS? I can't remember exactly but I know some people had success with Package Manager Console while the normal NuGet GUI window was failing.</p> \n\nDarrell Tunnell on ‎1‎/‎12‎/‎2018, 09:30 AM (7 days ago): \n<p>I have tried using package manager console. I get the same issue. It seems to fail on the Xamarin.Forms package - here is the log output around the issue:</p>\n<p>&gt; </p>\n<p>Successfully installed 'Xamarin.Android.Support.v7.MediaRouter 26.1.0.1' to Todo.Android<br>Adding package 'Xamarin.Forms.2.5.0.122203' to folder 'C:\\Users\\darrell.tunnell\\Source\\Repos\\Gluon.Client.Jwt\\src\\packages'<br>Added package 'Xamarin.Forms.2.5.0.122203' to folder 'C:\\Users\\darrell.tunnell\\Source\\Repos\\Gluon.Client.Jwt\\src\\packages'<br>Install failed. Rolling back...<br>Package 'Xamarin.Forms 2.5.0.122203' does not exist in project 'Todo.Android'</p> \n"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/377386856","html_url":"https://github.com/NuGet/Home/issues/6468#issuecomment-377386856","issue_url":"https://api.github.com/repos/NuGet/Home/issues/6468","id":377386856,"user":{"login":"jainaashish","id":18219758,"avatar_url":"https://avatars3.githubusercontent.com/u/18219758?v=4","gravatar_id":"","url":"https://api.github.com/users/jainaashish","html_url":"https://github.com/jainaashish","followers_url":"https://api.github.com/users/jainaashish/followers","following_url":"https://api.github.com/users/jainaashish/following{/other_user}","gists_url":"https://api.github.com/users/jainaashish/gists{/gist_id}","starred_url":"https://api.github.com/users/jainaashish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jainaashish/subscriptions","organizations_url":"https://api.github.com/users/jainaashish/orgs","repos_url":"https://api.github.com/users/jainaashish/repos","events_url":"https://api.github.com/users/jainaashish/events{/privacy}","received_events_url":"https://api.github.com/users/jainaashish/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T22:05:30Z","updated_at":"2018-03-29T22:05:30Z","author_association":"CONTRIBUTOR","body":"After detailed analysis, we've figured out that this needs to be fixed from Xamarin team and there is already an issue# https://bugzilla.xamarin.com/show_bug.cgi?id=61113 logged on to them. So please vote and comment and track Xamarin issue to get future updates."}}
{"actor":{"display_login":"jainaashish"}}