我使用TFS移动(使用未提交的更改)将一个项目从解决方案A移动到解决方案B.由于找不到引用,我得到了编译时错误。使用了2个参考文献。我删除并再次添加它们并修复编译时错误。我运行了一个测试用例,我发现文件未找到异常。
根据参考属性,使用的引用路径为C:_src\HIP\Out\Debug\CIP\Bin\amd64\DataPipe\MaterializedEntityManagerTest\Caradigm.Platform.Pipeline.MaterializedEntityManager.dll
根据下面的错误,我认为它正在寻找这个,file:///C:/_src/HIP/Out/Debug/CIP/Test/amd64/DataPipe/MaterializedEntityManager
请注意,它正在文件夹结构中查找 - .. \ CIP \ Test 而不是 .. \ CIP \ Bin 。 Test文件夹中不存在此文件。我决定复制到测试文件夹并给它一个镜头,文件夹是...... C:_src\HIP\Out\Debug\CIP\test\amd64\DataPipe\MaterializedEntityManagerTest\Caradigm.Platform.Pipeline.MaterializedEntityManager.dll.
出乎意料的是,我仍然得到同样的错误。
我现在对这个错误发疯了。我错过了什么?
Test Name: CdcEnableWithNoTableTest
Test FullName: Caradigm.Platform.Pipeline.MaterializedEntityManager.Test.DefiningQueryParserTests.CdcEnableWithNoTableTest
Test Source: c:\_src\HIP\prod\test\DataPipeline\MaterializationTest\EntityViewManagerTest\DefiningQueryParserTests.cs : line 15
Test Outcome: Failed
Test Duration: 0:00:00
Result Message:
Assembly Initialization method Caradigm.Platform.Pipeline.MaterializedEntityManager.Test.UnitTestInitializer.AssemblyInitialize threw exception. System.IO.FileNotFoundException: System.IO.FileNotFoundException: Could not load file or assembly 'Caradigm.Platform.Pipeline.MaterializedEntityManager, Version=3.0.0.0, Culture=neutral, PublicKeyToken=a03c60abe3a7c396' or one of its dependencies. The system cannot find the file specified.=== Pre-bind state information ===
LOG: DisplayName = Caradigm.Platform.Pipeline.MaterializedEntityManager, Version=3.0.0.0, Culture=neutral, PublicKeyToken=a03c60abe3a7c396
(Fully-specified)
LOG: Appbase = file:///C:/_src/HIP/Out/Debug/CIP/Test/amd64/DataPipe/MaterializedEntityManager
LOG: Initial PrivatePath = NULL
Calling assembly : Caradigm.Platform.Pipeline.MaterializedEntityManager.Test, Version=3.0.0.0, Culture=neutral, PublicKeyToken=a03c60abe3a7c396.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\vstest.executionengine.x86.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Caradigm.Platform.Pipeline.MaterializedEntityManager, Version=3.0.0.0, Culture=neutral, PublicKeyToken=a03c60abe3a7c396
LOG: Attempting download of new URL file:///C:/_src/HIP/Out/Debug/CIP/Test/amd64/DataPipe/MaterializedEntityManager/Caradigm.Platform.Pipeline.MaterializedEntityManager.DLL.
LOG: Attempting download of new URL file:///C:/_src/HIP/Out/Debug/CIP/Test/amd64/DataPipe/MaterializedEntityManager/Caradigm.Platform.Pipeline.MaterializedEntityManager/Caradigm.Platform.Pipeline.MaterializedEntityManager.DLL.
LOG: Attempting download of new URL file:///C:/_src/HIP/Out/Debug/CIP/Test/amd64/DataPipe/MaterializedEntityManager/Caradigm.Platform.Pipeline.MaterializedEntityManager.EXE.
LOG: Attempting download of new URL file:///C:/_src/HIP/Out/Debug/CIP/Test/amd64/DataPipe/MaterializedEntityManager/Caradigm.Platform.Pipeline.MaterializedEntityManager/Caradigm.Platform.Pipeline.MaterializedEntityManager.EXE.
. Aborting test execution.
Result StackTrace: at Caradigm.Platform.Pipeline.MaterializedEntityManager.Test.UnitTestInitializer.AssemblyInitialize(TestContext context)