简体   繁体   English

在 GAC 中安装 Microsoft.SqlServer.Types

[英]Install Microsoft.SqlServer.Types in GAC

How do I install Microsoft.SqlServer.Types assembly in GAC (C:\Windows\assembly\GAC_MSIL).如何在 GAC (C:\Windows\assembly\GAC_MSIL) 中安装 Microsoft.SqlServer.Types 程序集。 It is missing.它不见了。

I am getting error after running rdlc report.运行 rdlc 报告后出现错误。 it is MVC based application-它是基于 MVC 的应用程序-

Could not load file or assembly 'Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=token' or one of its dependencies.无法加载文件或程序集“Microsoft.SqlServer.Types,Version=12.0.0.0,Culture=neutral,PublicKeyToken=token”或其依赖项之一。

It seems application is looking Microsoft.SqlServer.Types assembly in GAC.似乎应用程序正在 GAC 中查找 Microsoft.SqlServer.Types 程序集。 I know how to install using nuget in project folder but I want it in GAC.我知道如何在项目文件夹中使用 nuget 进行安装,但我希望它在 GAC 中。

Don't try to GAC it.不要试图GAC它。 Add the NuGet package to your project instead.将 NuGet package 添加到您的项目中。

https://www.nuget.org/packages/Microsoft.SqlServer.Types https://www.nuget.org/packages/Microsoft.SqlServer.Types

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

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