[英]“Cannot find or open the PDB file” of a class library found in another solution
SolutionA (MVC Solution) cannot load the PDB file of one of the class libraries in SolutionB (Business Logic Class Libraries). SolutionA (MVC解决方案)无法加载SolutionB (业务逻辑类库)中的某个类库的PDB文件。 (It loads the other class library pdbs just fine) (它加载其他类库pdbs就好了)
Local Paths: 本地路径:
• C:\MyPath\WK_SOLUTIONA\Dev_BF\SolutionA
• C:\MyPath\WK_SOLUTIONB\Prod\SolutionB
Where there are references of SolutionA to SolutionB (ie dll reference) a reference path was set (Properties > Reference Paths) 如果有SolutionA到SolutionB的引用(即dll引用),则设置引用路径(Properties> Reference Paths)
Symbol Load Information: 符号加载信息:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\launcher_devbf\0a01d364\380351a5\assembly\dl3\9ae300b0\47b07c94_5317cf01\SolutionBClassLibrary.pdb: Cannot find or open the PDB file.
b:\23\575\src\SolutionBClassLibrary \obj\Release\SolutionBClassLibrary.pdb: Cannot find or open the PDB file.
C:\Windows\SolutionBClassLibrary.pdb: Cannot find or open the PDB file.
C:\Windows\symbols\dll\SolutionBClassLibrary.pdb: Cannot find or open the PDB file.
C:\Windows\dll\SolutionBClassLibrary.pdb: Cannot find or open the PDB file.
C:\Users\R9962~1.SCH\AppData\Local\Temp\SymbolCache\SolutionBClassLibrary.pdb\4c48672e09774c67b9f8001ecafacbd71\SolutionBClassLibrary.pdb: Cannot find or open the PDB file.
C:\Users\R9962~1.SCH\AppData\Local\Temp\SymbolCache\MicrosoftPublicSymbols\SolutionBClassLibrary.pdb\4c48672e09774c67b9f8001ecafacbd71\SolutionBClassLibrary.pdb: Cannot find or open the PDB file.
C:\MyPath\WK_SOLUTIONB\Prod\SolutionB\bin\Debug\SolutionBClassLibrary.pdb: PDB does not match image.
SYMSRV: C:\Users\R9962~1.SCH\AppData\Local\Temp\SymbolCache\SolutionBClassLibrary.pdb\4C48672E09774C67B9F8001ECAFACBD71\SolutionBClassLibrary.pdb not found
SYMSRV: http://referencesource.microsoft.com/symbols/SolutionBClassLibrary.pdb/4C48672E09774C67B9F8001ECAFACBD71/SolutionBClassLibrary.pdb not found
http://referencesource.microsoft.com/symbols: Symbols not found on symbol server.
I found a workaround to achieve the desired result. 我找到了一种解决方法来达到预期的效果。 Basically manually overwritten the dlls that where referenced with the ones that had my changes. 基本上手动覆盖那些引用我的更改的dll。 Since this is a local environment there are no repercussions. 由于这是一个当地环境,因此没有任何影响。
This is however as I said, a workaround
and goes outside the point of using reference paths in the first place. 然而,正如我所说,这是一种workaround
并且首先使用参考路径。
Edit: Apparently now all my changes are being tracked since I've done this. 编辑:显然现在我的所有更改都被跟踪,因为我已经完成了这项工作。 So this was indeed the correct answer! 所以这确实是正确答案!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.