简体   繁体   English

nuget 与视觉工作室社区

[英]nuget with visual studio community

I am starting a new coding job with a new client.我正在与一个新客户一起开始一项新的编码工作。 The problem I am having is that a lot of issues with namespaces that can not be found or maybe missing directives or an assembly reference.我遇到的问题是命名空间存在很多问题,这些问题无法找到,或者可能缺少指令或程序集引用。 This, I think, is a common thing.我认为,这是很普遍的事情。 So I am wondering where I can download a free DLL from Microsoft that will do the trick and get me to compile my code.所以我想知道在哪里可以从 Microsoft 下载免费的 DLL,它可以解决问题并让我编译我的代码。 The class the code is using that the compiler does not like is "GeoPoint".编译器不喜欢的代码正在使用的 class 是“GeoPoint”。 A quick search online offered using nuget to install the package Azure.Core.使用 nuget 提供的快速在线搜索以安装 package Azure.Core。 So, how do I do this?那么,我该怎么做呢? I am using Microsoft Visual Studio Community 2019. I am looking for some direction.我正在使用 Microsoft Visual Studio Community 2019。我正在寻找一些方向。 Please advise.请指教。

On my work computer, I went to https://azure.microsoft.com/en-us/downloads/ in my browser but it is blocked.在我的工作计算机上,我在浏览器中访问了https://azure.microsoft.com/en-us/downloads/ ,但它被阻止了。 So, I am assuming now that I have to use visual studio itself to add new assemblies instead of using a browser.所以,我现在假设我必须使用 Visual Studio 本身来添加新程序集,而不是使用浏览器。 Is that right or do I have to ask my administrator for access?这是正确的还是我必须要求我的管理员访问?

The page: https://www.nuget.org/packages/Azure.Core/ offers me another hint with "Package Manager" I found under Project->Manage Nuget Packages..." in visual studio but when i try to uplad a package I get an error message.页面: https://www.nuget.org/packages/Azure.Core/为我提供了另一个提示,我在 Visual Studio 中的 Project->Manage ZE0A9608C9CC2A52501621A364DFD2D 下找到了“包管理器”,但当我尝试升级 ZE0A9608C9CC2A52501621A364DFD2D 时...” package 我收到一条错误消息。

So, my manager said I fist need to download an assemply.所以,我的经理说我首先需要下载一个组件。

Please advise.请指教。

If all you're looking for is how to Load a Nuget Package from Local Source, check this resource: How do I install a NuGet package.nupkg file locally? If all you're looking for is how to Load a Nuget Package from Local Source, check this resource: How do I install a NuGet package.nupkg file locally?

But, then again, why would you want to do that?但是,话又说回来,你为什么要这样做? Azure.Core is a publicly available Nuget, so it makes little sense to do it manually as you would lose out on easy upgrades from the package manager. Azure.Core 是公开可用的 Nuget,因此手动执行此操作几乎没有意义,因为您会失去从 package 管理器轻松升级的机会。

Here's a resource to help you install a Nuget Package from Public Sources: https://docs.microsoft.com/en-us/azure/devops/artifacts/nuget/consume?view=azure-devops&tabs=windows Here's a resource to help you install a Nuget Package from Public Sources: https://docs.microsoft.com/en-us/azure/devops/artifacts/nuget/consume?view=azure-devops&tabs=windows

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

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