Can I publish a private NuGet package?(我可以发布私有 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 包吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:我可以发布私有 NuGet 包吗?


基础教程推荐
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- rabbitmq 的 REST API 2022-01-01
- 如何激活MC67中的红灯 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30