问题描述
我刚刚安装了 VS 2017 并将我的 SSRS 项目从 VS 2015 移到了 2017.我有一个自定义程序集,它在 VS 2015 下工作正常,但在 2017 年不是.它说
I have just installed VS 2017 and moved my SSRS project from VS 2015 to 2017. I have a custom assembly which is working fine under VS 2015, but not 2017. It says
加载代码模块时出错:'CustomLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.详细信息:无法加载文件或程序集CustomLib,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null"或其依赖项之一.该系统找不到指定的文件.
我在 VS 2015 下遇到了完全相同的问题,解决方案是将我的自定义 dll 移动到
I had exact same problem under VS 2015 and the solution was moving my custom dll under
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies
所以,我已经将我的自定义 dll 移到了
So, I have moved my custom dll under
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PrivateAssemblies
我认为这是 VS 2017 的正确路径并检查文件/文件夹权限并将它们设置为相同,但没办法,它仍然会引发相同的错误.
which I believe is the correct path for VS 2017 and check file/folder permissions and set them identical, but no way, it still throws same error.
我错过了什么?
推荐答案
这现在需要 dll 的两个位置 - 第一个适用于新的 VS2017 RS 项目,但升级的项目也需要第二个位置的 dll:
This now requires two locations for the dll - the first works for new VS2017 RS projects, but upgraded projects also need the dll in the second location:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\SSRS
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PrivateAssemblies
这篇关于SSRS 自定义程序集无法在 Visual Studio 2017 下加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!