You probably managed to answer this question, but if not, then these are the steps you need to follow
To the right, where your solution file is located inside Windows, there should be a folder named .nuget. Rename or delete this folder.
Now open each .csproj or .vbproj file in notepad or in any text editor and delete these lines
<RestorePackages>true</RestorePackages> <Import Project="$(SolutionDir)\.nuget\NuGet.targets" />
The important part is deleting / renaming the .nuget folder. This should now completely disable package recovery.
Edit: To selectively disable package recovery for the DEBUG assembly, edit the Nuget.settings.targets file and change the following line
<RestorePackages Condition="$(RestorePackages) == ''">false</RestorePackages>
For
<RestorePackages Condition="$(RestorePackages) == '' AND '$(Configuration)' == 'Debug'">false</RestorePackages>
The Nuget.settings.targets file is located in the .nuget folder, which should be in the same folder as the solution file.
Nikhil
source share