我可以发布私有 NuGet 包吗?

Can I publish a private NuGet package?(我可以发布私有 NuGet 包吗?)
本文介绍了我可以发布私有 NuGet 包吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个非常适合我公司团队的组件.我希望能够使用 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 包吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)