In your root solutions directory, create a folder with the name .nugetand add nuget.configwith the following contents.
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
</configuration>
Additional configuration settings can be found here: https://docs.nuget.org/docs/reference/nuget-config-settings
You may also need to close / reopen Visual Studio and revert the pending changes to TFS Source Control for your folder \packages(if you have pending additions).
source
share