为Postgresql安装Npgsql.dll [英] Installing Npgsql.dll for Postgresql

查看:98
本文介绍了为Postgresql安装Npgsql.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在安装npgsql.dll和mono.security.dll时遇到问题.我已经尝试解决了很长时间...请帮助.这是我已经完成的步骤...

So I am having an issue installing npgsql.dll and mono.security.dll. I've been trying to figure this out for so long... please help. Here are the steps I've done...

  1. https://github.com/npgsql/npgsql
  2. 下载zip文件
  3. 进入Visual Studio并开始新项目.C#命令(不确定我应该创建哪个特定项目)
  4. 创建一个强大的键名
  5. 然后我尝试使用gacutil安装.dll文件

在第1步中下载的zip文件中,我在任何地方都找不到Npgsql.dll和Mono.Security.dll ...

In the zip file I've downloaded in step 1, I cannot find Npgsql.dll and Mono.Security.dll anywhere...

我还尝试下载其他实际具有这些文件的zip文件,但是,当我尝试在命令(gacutil/i C:... \ Npgsql.dll)中安装它们时,我一直在收到以下错误消息:

I've also tried downloading other zip files that have actually had those files, however, when I try to install them in command (gacutil /i C:...\Npgsql.dll) I just keep getting the following error:

无法将程序集添加到缓存:???????????"

"Failure adding assembly to cache: ???????????"

推荐答案

在Visual Studio 2017中,转到菜单工具"->"NuGet程序包管理器"->程序包管理器控制台".运行命令:

In Visual Studio 2017, go to menu Tools-> NuGet Package Manager-> Package Manager Console. Run command:

Install-Package Npgsql -Version 3.2.7

要取消安装版本3.2.7 ...等等...

To unstall version 3.2.7... and so on...

此处提供了更多版本: https://www.nuget.org/packages/Npgsql/

More versions are available here: https://www.nuget.org/packages/Npgsql/

这篇关于为Postgresql安装Npgsql.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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