问题描述
我制作了一个非常适合我公司团队的组件.我希望能够使用 NuGet 使该程序集可用于我的团队和我公司的类似团队正在从事的其他项目.但是,程序集并不是我想与世界分享的真正代码.
I have an assembly that I have made which is very specific to my team at my company. I want to be able to use NuGet to make this assembly avaiable to other projects that my team and similar teams at my company are working on. However, the assembly isn't really code that I want to share with the world.
我知道使用 Maven,您可以从本地存储库创建本地存储库和源包.NuGet 是否支持类似的功能?NuGet 有没有办法指定本地存储库或拥有私有包?
I know with Maven, you can create local repositories and source packages from a local repo. Does NuGet support similar functionality? Is there a way with NuGet to specify either a local repository or to have private packages?
推荐答案
是的!您可以托管自己的 NuGet 服务器!
Yes! You can host your own NuGet server!
最简单的方法是在您的服务器上创建一个共享文件夹并将其引用为您的 Nuget 服务器.
The easiest way is creating a shared folder on your server and referencing that as your Nuget Server.
您可以在以下位置找到有关如何执行此操作的更多信息:托管您的自己的 NuGet 源
You can find more information about how to do that at: Hosting Your Own NuGet Feeds
这篇关于我可以发布私有 NuGet 包吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!