我在Visual Studio 2008中有一个有多个项目的解决方案.其中一个项目是WCF项目.有时我只是想调试其他项目,但是当我按F5时,Visual Studio启动了wcfsvchost.exe来托管WCF项目,即使它不是"StartUp Project".
目前,每次我调试其他项目时,我都要卸载WCF项目以防止恼人的WcfSvcHost.exe主机弹出.但是,这不方便.有人知道更好的想法阻止WCF项目在调试模式下托管吗?
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Microsoft.Tools.SvcHost.ServiceHostHelper.LoadServiceAssembly(String svcAssemblyPath)
Run Code Online (Sandbox Code Playgroud)
我如何循环通过LoaderExceptions属性来查看发生了什么错误,因为它没有命中任何服务并在运行任何代码之前给我这个错误?
谢谢