我有这个奇怪的问题,它只会在我添加第二个Test Class并添加一些代码之后出现。
在添加第二个测试类之前它工作正常并且它工作,直到我将更多代码添加到第二个测试类。我无法弄清楚触发此问题的原因,但会出现以下情况:
加载C:\ Tfs \ Test \ AcceptanceTest \ OrganizationServiceTests \ OrganizationServiceV2Tests \ OrganizationServiceTest \ bin \ Debug \ OrganizationServiceV2Tests.dll时出错:无法加载文件或程序集'Microsoft.VisualStudio.QualityTools.UnitTestFramework,Version = 12.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。系统找不到指定的文件。
它是一个单元测试。
它正在寻找质量工具.unittest框架的12.0.0.0版本,我能用它做什么,只有10.0.0.0版本。我看到的每个地方都没有这个版本的参考。所有引用都参考10.0.0.0所以我不知道它来自何处。
有没有进一步调试这个或任何人都知道这可能是什么问题?
这就是dll的样子:
// Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Architecture: AnyCPU (64-bit preferred)
// Runtime: .NET 2.0
using System;
using System.Diagnostics;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("10.0.0.0")]
[assembly: CLSCompliant(true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyCompany("Microsoft Corporation")]
[assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
[assembly: AssemblyDefaultAlias("Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll")]
[assembly: AssemblyDelaySign(true)]
[assembly: AssemblyDescription("Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll") ]
[assembly: AssemblyFileVersion("12.0.30723.0")]
[assembly: AssemblyInformationalVersion("12.0.30723.0")]
[assembly: AssemblyKeyFile("f:\\dd\\tools\\devdiv\\FinalPublicKey.snk")]
[assembly: AssemblyProduct("Microsoft® Visual Studio® 2013 ")]
[assembly: AssemblyTitle("Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll")]
[assembly: NeutralResourcesLanguage("en-US")]
[assembly: SatelliteContractVersion("10.0.0.0")]
[assembly: CompilationRelaxations(8)]
[assembly: InternalsVisibleTo("Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa 57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad2 36132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c 0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093 344d5ad293")]
[assembly: InternalsVisibleTo("MS.TLM.Test.TE.LegacyDC.TestHelpers.Common, PublicKey=002400000480000094000000060200000024000052534131000400000100010057c60b 06ff787f4e7584af1d49e4ec20b109b1e200b97688b4ce376b11f91652ee69f3e57388a4ea13380d 37ef7921c38f0797f4ae1508884531b8847a89856207f67b0b833a950169a35b37e57b107cd985ea 0deda6177ad2213ed5751161262c28f37a4d4312db785177bfd08be4a961636f9359211c3be188f6 4ddca934a8")]
[assembly: InternalsVisibleTo("MS.TLM.Test.TE.LegacyDC.UnitTestFrameworkTest, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa 57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad2 36132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c 0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093 344d5ad293")]
[assembly: InternalsVisibleTo("Microsoft.VisualStudio.TestTools.TestGeneration, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa 57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad2 36132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c 0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093 344d5ad293")]
[assembly: InternalsVisibleTo("Microsoft.VisualStudio.TestPlatform.Extensions.VSTestIntegra tion, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa 57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad2 36132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c 0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093 344d5ad293")]
[assembly: InternalsVisibleTo("Microsoft.VisualStudio.TestTools.TestGenerationDialog, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa 57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad2 36132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c 0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093 344d5ad293")]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: ReliabilityContract(Consistency.MayCorruptInstance, Cer.None)]
[assembly: ComVisible(false)]
真的不知道它将版本设置为12.0.0.0,
亲切的问候
的Fredrik
答案 0 :(得分:1)
如果您使用以下问题,则会出现问题: Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll版本10.1.0.0以及Microsoft.VisualStudio.QualityTools.LoadTestFrameWork.dll。然后它会尝试找到一个不存在的dll。
解决方案是删除UnitTestFramework.dll并将其替换为10.0.0.0版。
然后它会起作用。 似乎很奇怪,不能使用最新的......