NancyFx StructureMapNancyBootstrapper不工作

时间:2014-04-30 11:45:31

标签: c# asp.net bootstrapper nancy structuremap3

我使用StructureMapNancyBootstrapper作为我的NancyFx项目的Bootstrapper。现在我已经使用过它并且它已经完美运行了,我已经在新的NancyFx项目中使用它并且我得到两个错误说:

  • Error 14 'Bootstrapper.ApplicationStartup(StructureMap.IContainer, Nancy.Bootstrapper.IPipelines)': no suitable method found to override
  • Error 15 'Bootstrapper.ConfigureApplicationContainer(StructureMap.IContainer)': no suitable method found to override

所以这基本上是说父类ApplicationStartup中没有ConfigureApplicationContainerStructureMapNancyBootstrapper方法。

我在大约2周前使用StructureMapNancyBootstrapper创建了一个项目,它运行正常,使用相同的方法现在不起作用!

我唯一能看到的是使用nuget导入包时,它现在添加了一个名为StructureMap.Net4的包。我认为它与此有关,是新版本中的错误吗?

之前是否还有其他人遇到此问题,如果有,您是如何解决的?

现在已经发布了StructureMap 3已发布的方法吗?

感谢您的任何意见。

修改

我刚刚将StructureMap(不是nancy.bootstrapper.structuremap)恢复到版本2.6.4.1并且一切正常,他们显然已经改变了版本3中的方法,因为我还没有得到是时候弄清楚如何使用版本3了,我现在必须坚持使用旧版本的结构图,希望我能在我得到更多时间时找出问题所在!

0 个答案:

没有答案