简体   繁体   English

具有TFS的NuGet,但不具有程序包还原

[英]NuGet with TFS but without Package Restore

I'm trying to establish a private NuGet server for our team but I think I've found a show stopper. 我正在尝试为我们的团队建立一个私有的NuGet服务器,但我想我已经找到了一个节目宣传站。

If I have to download the solution from TFS the packages and its subdirectories are created but no actual files were downloaded. 如果必须从TFS下载解决方案,则将创建软件包及其子目录,但未下载任何实际文件。 The result is that the dlls/assemblies are missing. 结果是缺少dll /程序集。

Is there a way to accomplish this without enabling package restore? 有没有可以在不启用软件包还原的情况下完成此操作的方法? I like to keep the corresponding dlls in the vcs. 我喜欢将相应的dll保留在vcs中。

TFS by default ignores dll's when adding a folder to the pending changes (and doesn't work to well with binaries in general). 在将文件夹添加到挂起的更改时,默认情况下,TFS会忽略dll(通常不适用于二进制文件)。 Don't forget to add the dll's explicitly to your source control. 不要忘记将dll的显式添加到源代码管理中。

This is exactly why I prefer restoring the packages directly from a nuget feed when working with TFS :) 这就是为什么我更喜欢在使用TFS时直接从nuget提要中恢复软件包的原因:)

Still no solution found. 仍未找到解决方案。 I think we really have to switch to the package restore feature. 我认为我们确实必须切换到软件包还原功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM