简体   繁体   English

FitSharp无法加载装配体。装配体装配体的原始固定装置

[英]FitSharp could not load fit.PrimitiveFixture from assembly fit

I have been trying to migrate over to FitSharp after we upgraded our project to .NET 4.0 however I am currently stuck with the error: 在将项目升级到.NET 4.0之后,我一直试图迁移到FitSharp,但是我目前仍然遇到以下错误:

System.TypeLoadException: Could not load type 'fit.PrimitiveFixture' from assembly 'fit, Version=2.2.4498.25494, Culture=neutral, PublicKeyToken=null'.
  at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
  at System.Reflection.RuntimeAssembly.GetExportedTypes()
  at fitSharp.Machine.Engine.CurrentDomain.LoadAssembly(String assemblyPath)
  at fitSharp.Machine.Engine.ApplicationUnderTest.Assemblies.AddAssembly(String assemblyName)
  at fitSharp.Machine.Engine.ApplicationUnderTest.AddAssemblies(IEnumerable`1 assemblyNames)
  at fitnesse.fitserver.FitServer.ParseCommandLineArguments(IEnumerable`1 args)
  at fitnesse.fitserver.FitServer.Run(IList`1 CommandLineArguments)
  at fitnesse.fitserver.FitServer.Run(IList`1 commandLineArguments, Memory memory, ProgressReporter reporter)
  at fitSharp.Machine.Application.Shell.Run()
  at fitSharp.Machine.Application.Shell.Execute()
  at fitSharp.Machine.Application.Shell.Run(IList`1 commandLineArguments)

I am using fitnesse-standalone.jar as server if that makes any difference and have ofc. 我正在使用fitnesse-standalone.jar作为服务器,如果有任何不同并具有ofc。 defined the FitSharp runner in the root of fitnesse, we have placed fitsharp in a subdirectory inside fitnesse, so the path is relative. 在fitnesse的根目录中定义了FitSharp运行器,我们将fitsharp放置在fitnesse内的子目录中,因此路径是相对的。

!path ..\..\..\Output\Runtime\*.dll
!define COMMAND_PATTERN {%m -r fitnesse.fitserver.FitServer,fitSharp\fit.dll %p}
!define TEST_RUNNER {fitsharp\Runner.exe}

Obviously fit.PrimitiveFixture doesn't exist, in general I can see that fit.dll has shrinked quite a bit compared to the one bundled with FitNesse it self. 显然是fit.PrimitiveFixture不存在,总的来说,与fitNesse捆绑在一起的文件相比,fit.dll缩小了很多。

I haven't been able to determine why it tries to load it though, where that stems from... I have looked if there where any breaking changes that could hint anything, but that didn't really give me an idea, obviously I have also changed all references to fit so that it points to the new library rather than the bundled and compiled with success (had to add fitsharp.dll as well though)... 我还无法确定为什么它试图加载它,它是从哪里来的...我一直在研究是否存在任何可以暗示任何内容的重大更改,但这并没有真正给我一个主意,显然我还更改了所有引用以使其适合,以便它指向新的库,而不是成功地捆绑和编译(不过也必须添加fitsharp.dll)...

I can't really get into debugging as it fails long before that... 我真的无法进入调试阶段,因为它早在那之前就失败了...

One should have thought others had experienced the same thing, that doesn't quite seem to be the case though, at least my google attempts hasn't yielded much use-able results. 一个人应该以为其他人也经历过同样的事情,但事实并非如此,至少我的Google尝试并没有产生太多可用的结果。

So here is to hoping that someone has run into the same problem, yet solved it them self wihtout sharing the information online. 因此,这是希望有人遇到了同样的问题,但又解决了这个问题,他们没有在线共享信息。 Someone who might have deeper knowledge of FitNesse and FitSharp? 谁可能对FitNesse和FitSharp有更深入的了解?

路径中的某个程序集可能有问题:...... \\ Output \\ Runtime * .dll尝试仅列出测试所需的单个程序集,并查看这是否有助于缩小导致程序错误的程序集的范围。问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM