<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nuget on dwmkerr.com</title><link>https://dwmkerr.com/categories/nuget/</link><description>Recent content in Nuget on dwmkerr.com</description><generator>Hugo -- gohugo.io</generator><language>en-uk</language><managingEditor>Dave Kerr</managingEditor><copyright>Copright &amp;copy; Dave Kerr</copyright><lastBuildDate>Wed, 10 Jul 2013 02:17:09 +0000</lastBuildDate><atom:link href="https://dwmkerr.com/categories/nuget/index.xml" rel="self" type="application/rss+xml"/><item><title>Recursive read lock acquisitions not allowed in this mode</title><link>https://dwmkerr.com/recursive-read-lock-acquisitions-not-allowed-in-this-mode/</link><pubDate>Wed, 10 Jul 2013 02:17:09 +0000</pubDate><guid>https://dwmkerr.com/recursive-read-lock-acquisitions-not-allowed-in-this-mode/</guid><description>&lt;p&gt;If you are using the following combination of tools:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="line-height: 14px;"&gt;Visual Studio 2012&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Visual Studio Tools for Git&lt;/li&gt;
&lt;li&gt;Nuget&lt;/li&gt;
&lt;/ul&gt;
Then you may encounter some weird problems when trying to update Nuget packages. For me, updates regularly fail with:
&lt;p&gt;&lt;strong&gt;Recursive read lock acquisitions not allowed in this mode.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m lost on the root cause of this, but it does seem that the project I&amp;rsquo;m working on has files set to read-only by something regularly, perhaps Visual Studio is trying to make Git more TFS-y by locking things all over the place. Whatever the cause, I&amp;rsquo;ve found that the following usually helps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style="line-height: 14px;"&gt;Don't use Update-Package - use Install-Package instead.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Make sure the solution has all of its files read+write, not read only.&lt;/li&gt;
&lt;li&gt;Open the team explorer and go to 'Commits' - making sure that the Git tools have loaded various components.&lt;/li&gt;
&lt;/ol&gt;
&lt;span style="line-height: 20px;"&gt;This combination of tricks seems to solve the problem. If anyone has any other ideas or suggestions, just comment.&lt;/span&gt;</description><category>CodeProject</category></item></channel></rss>