[英]Visual Studio local workspace + Enable Nuget Package Restore (disableSourceControlIntegration)
I was happy with disableSourceControlIntegration = true (and /packages/ not checked-in to TFS) in server workspace. 我对服务器工作区中的disableSourceControlIntegration = true(和/ packages / not-checked-in TFS)感到满意。
Now I decided to try local workspace and boom - it finds thousands of 'Detected Changes' in /packages/, which should be ignored because of disableSourceControlIntegration = true in my NuGet.Config 现在我决定尝试本地工作空间和繁荣 - 它在/ packages /中发现了数千个“检测到的变化”,由于我的NuGet.Config中的disableSourceControlIntegration = true,因此应该忽略它们
Anyone got local workspace and package restore working together? 任何人都有本地工作区和包恢复一起工作? I believe that adding .tfignore is a really bad option. 我相信添加.tfignore是一个非常糟糕的选择。 Btw, I'm using VS13. 顺便说一下,我正在使用VS13。
In your solution directory root, create a folder called .nuget
and add a nuget.config
with the following contents. 在解决方案目录根目录中,创建一个名为.nuget
的文件夹,并添加一个带有以下内容的nuget.config
。
<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 其他配置设置可在此处找到: https : //docs.nuget.org/docs/reference/nuget-config-settings
You might also need to close/reopen Visual Studio and have to revert pending changes in TFS Source Control for your \\packages
folder (if you have pending additions). 您可能还需要关闭/重新打开Visual Studio,并且必须还原\\packages
文件夹的TFS源代码管理中的挂起更改(如果您有待处理的添加项)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.