VS 2015 的 NuGet 源代码管理集成
NuGet Source Control Integration for VS 2015
在 Visual Studio 2013 (NuGet 2.8) 中,我们一直在使用以下方法来禁用 NuGet 的源代码管理集成:
将以下部分添加到与解决方案相关的 nuget.config 文件中:SolutionDir\.nuget\nuget.config.
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
但是,升级到 Visual Studio 2015 (NuGet 3.0) 后,该指令似乎不再起作用。新的和升级的包被添加到源代码管理中。
我尝试将此配置添加到 ...\Users\user.name\AppData\Roaming\NuGet\nuget.config 文件,但它没有任何改变。
我想知道在 NuGet 3.0 中是否有新的方法来指定此行为。
这似乎是一个错误。它已在 Nuget Github site 上报告,应该会在即将发布的版本中修复。
来自 deepakaravindr(受让人):
We will work on a fix. For the time being, there are 2 possible workarounds
- First one is to move nuget.config from the solution folder .nuget to the solution level and directory
- Second one is to undo the changes to the packages folder
在 Visual Studio 2013 (NuGet 2.8) 中,我们一直在使用以下方法来禁用 NuGet 的源代码管理集成:
将以下部分添加到与解决方案相关的 nuget.config 文件中:SolutionDir\.nuget\nuget.config.
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
但是,升级到 Visual Studio 2015 (NuGet 3.0) 后,该指令似乎不再起作用。新的和升级的包被添加到源代码管理中。
我尝试将此配置添加到 ...\Users\user.name\AppData\Roaming\NuGet\nuget.config 文件,但它没有任何改变。
我想知道在 NuGet 3.0 中是否有新的方法来指定此行为。
这似乎是一个错误。它已在 Nuget Github site 上报告,应该会在即将发布的版本中修复。
来自 deepakaravindr(受让人):
We will work on a fix. For the time being, there are 2 possible workarounds
- First one is to move nuget.config from the solution folder .nuget to the solution level and directory
- Second one is to undo the changes to the packages folder