简体   繁体   English

使用 NuGet 包资源管理器和 Azure DevOps Artifacts

[英]Using NuGet Package Explorer and Azure DevOps Artifacts

Hopefully this isn't a duplicate (if it is, cannot find the answer).希望这不是重复的(如果是,则找不到答案)。

We are trying to store several of our common libraries as NuGet packages and our team lead created an area in the Artifacts (sorry if I fumble on the terminology) to store our packages.我们正在尝试将我们的几个公共库存储为 NuGet 包,我们的团队负责人在工件中创建了一个区域(对不起,如果我在术语上摸索了)来存储我们的包。 I have rights as a contributor and I'm trying to use Nuget Package Explorer (NPE) to create the packages and upload them.我有作为贡献者的权利,我正在尝试使用 Nuget 包资源管理器 (NPE) 创建包并上传它们。 I've created a few as offline and pushed them with the command line, but would like to do so within NPE.我已经创建了一些离线并使用命令行推送它们,但希望在 NPE 中这样做。 I'd done this in a prior job but we had a different setup to store them and not in a position to go back and ask what they did.我在之前的工作中做过这件事,但我们有不同的设置来存储它们,而且无法回去询问他们做了什么。

When I launch NPE and put in the URL of our repository, I'll either get a message saying it cannot load the service index or the metadata was not found.当我启动 NPE 并输入我们存储库的 URL 时,我会收到一条消息,说它无法加载服务索引或找不到元数据。 If I go to a browser where I'm not logged on (say use Edge whereas I would normally use Chrome) I'll get a 401 error.如果我转到未登录的浏览器(比如使用 Edge 而我通常会使用 Chrome),我会收到 401 错误。 I downloaded the NPE source and stepped through the code and at the point where it fails, the inner exception says that a 401 happened.我下载了 NPE 源代码并逐步执行代码,当它失败时,内部异常表示发生了 401。

I've created a PAT so that I can access the repository inside of Visual Studio (2017 & 2019) and that seems to work.我创建了一个 PAT,以便我可以访问 Visual Studio(2017 和 2019)内部的存储库,这似乎有效。 So not sure how to make it so that NPE will read my credentials.所以不确定如何制作它以便 NPE 读取我的凭据。

And to add to the confusion, this happens when I'm at work and plugged into the local network.更令人困惑的是,当我在工作并插入本地网络时会发生这种情况。 Last week I was working at home and everything worked just fine.上周我在家工作,一切都很好。 I don't have to use a VPN and apparently we don't have any sort of proxy setup.我不必使用 VPN,而且显然我们没有任何代理设置。

Weird.奇怪的。 Help is appreciated, thanks!感谢帮助,谢谢!

Found doc which may be helpful in your scenario.找到了可能对您的场景有帮助的文档 Comparing fiddler traces when NPE is accessed from your work place and remotely can provide further insights.当从您的工作场所和远程访问 NPE 时,比较提琴手跟踪可以提供进一步的见解。

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

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