ReflectionTypeLoadException

别等时光非礼了梦想. 提交于 2019-12-14 01:41:48

问题


When I try to build My WF project I get this error. I've found that removing System.Activities.Presentation solves this error. If I get this error at runtime, I can investigate LoaderExceptions to find out about the root problem.

How can do the same when I get this error at compile time?
Alternatively, does anybody know how to solve this particular problem?

Extension 'Microsoft.Activities.Build.Validation.ValidationBuildExtension' threw an exception of type 'System.Reflection.ReflectionTypeLoadException' : 'Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.'.


回答1:


Try this:

Tools -> Options -> Projects and Solutions -> Build and Run -> MsBuild project build output verbosity -> Detailed (or diagnostic)

Visual studio will include much more detailed information about the build process in the output window.



来源:https://stackoverflow.com/questions/21526152/reflectiontypeloadexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!