我应该如何使用nuget组织解决方案参考? [英] How should I organize the solution references with nuget?

查看:78
本文介绍了我应该如何使用nuget组织解决方案参考?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我有一个包含许多项目的Visual Studio解决方案?

I have a Visual Studio Solution with many projects?

我想使用nugget但是我想要我对解决方案的所有引用都从一个nuget文件夹中获取库?

I would like to use nugget but I would like that all my references of the solution get the libraries from one nuget folder?

我该怎么办?

并且。自动下载最新版本是一个好习惯吗?

And. Is a good practice to download the last version automatically?

推荐答案

欢迎来到MSDN论坛。

Welcome to MSDN forum.

尝试创建一个nuget包,然后添加nuget文件夹中的库,然后右键单击
解决方案并选择管理Nuget软件包以便将其添加到项目中。

Try to create a nuget package and add the libraries from your nuget folder, then you can right click on the solution and select manage Nuget packages for solution to add it to projects.

使用 NuGet Package Explorer < span lang ="ZH-CN"style ="font-family:DengXian">:


  1. 下载
    NuGet Package Explorer
  2. 打开NuGet包资源管理器,选择创建新包。
  3. 添加内容选项卡上的lib文件夹,并添加您的dll文件
  4. 保存包并将其安装到项目中,检查它是否添加引用。


https://stackoverflow.com/questions/43277715/create-nuget-package-from-dlls/43316056#43316056

https://stackoverflow.com/questions/52009642/installing-nuget-package-located-in-local-package-repository-into-a-new-visual-s




祝你好运,

Joyce


这篇关于我应该如何使用nuget组织解决方案参考?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆