Ninject bootstrapper没有可用的来源

时间:2011-11-06 21:17:25

标签: visual-studio-2010 ninject-2 ninject-extensions

我已经通过nuget将Ninject Mvc Extensions添加到我的项目中,并且已将NinjectMVC3文件放入App_Start文件夹中。如果我踩到我的源代码,我前面会出现“No available source”页面。

问题是我无法访问代码行的下一步。我必须在我自己的代码中找到下一步并放置断点。

正在寻找NinjectDependencyResolver.cs,但当前路径中没有这样的文件,因为它已在下面的信息中显示。

以下是Visual Studio的源文件信息。

Locating source for 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'. Checksum: MD5 {c4 f8 b4 46 45 cb f8 1c c7 74 29 b9 70 9f 2b 24}
The file 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs' does not exist.
Looking in script documents for 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'...
Looking in the projects for 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmf敤楦楮楴湯祜畯摲晥湩瑩'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs.
The debugger could not locate the source file 'c:\Projects\Ninject\Maintenance2.2\ninject.web.mvc\mvc3\src\Ninject.Web.Mvc\NinjectDependencyResolver.cs'.

我怎样摆脱这个问题?

1 个答案:

答案 0 :(得分:0)

我不确定为什么这是一个问题。当您没有要尝试调试的DLL的源代码时,此标准行为。从源代码构建ninject或忽略警告。