PresentationFramework DLL无法加载 [英] PresentationFramework DLL could not be loaded
问题描述
我正在运行一个运行 FXCop 分析的 TeamCity 构建。
获取以下错误:
[INFO] 2>项目:错误:CA0058:引用的程序集PresentationFramework,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35未找到。
现在,这个错误只出现在其中一台机器上,他构建运行正常
我已经检查过以下内容(在所有机器上相同)
- 检查GAC中是否存在程序集
- 验证了Visual Studio 2010和FXCop 10.0是否存在于所有计算机上并验证了配置。
- Checked that the assembly is present in GAC
- Verified that Visual Studio 2010 and FXCop 10.0 are present on all machines and verified the configuration.
< // @ b
$ b
任何想法?
尝试将PresentationFramework.dll文件复制到
C:\程序文件(x86)\Microsoft Visual Studio 10.0 \VC#\Bin或
C:\程序文件(x86)\Microsoft Visual Studio 11.0 \VC#\Bin如果您现在使用Visual Studio 2012。
如何复制DLL
1)打开命令行,并像此一样导航到
C:\Windows\assembly\GAC_MSIL\PresentationFramework\3.0 .0.0__31bf3856ad3 64e35
2)将文件复制到C驱动器中的文件夹中,使用此命令执行DLLFiles
复制PresentationFramework .dll C:\DLLFiles
3)使用Windows资源管理器复制到Visual Studio文件夹。
如果没有解决,请尝试引用项目中的DLL。
希望它有效。
I am running a TeamCity build which is running FXCop Analysis.
Getting the following error:
[INFO] 2>Project : error : CA0058 : The referenced assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be found.
Now, this error is coming on only one of the machines, and he build is running fine on all remaining ones.
I've checked the following (same on all the machines)
Any idea?
Try copying the PresentationFramework.dll file to
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC#\Bin or
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC#\Bin if you are using Visual Studio 2012 now.
How to copy the DLL 1)Open command line and navigate to it like this
C:\Windows\assembly\GAC_MSIL\PresentationFramework\3.0.0.0__31bf3856ad364e35
2) Copy the file to a folder in your C Drive say DLLFiles with this command
copy PresentationFramework.dll C:\DLLFiles
3) Use windows explorer to copy to the Visual Studio folder. If that does not solve it try referencing the DLL in your project.
Hope it works.
这篇关于PresentationFramework DLL无法加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!