[英]ReflectionTypeLoadException
When I try to build My WF project I get this error. 当我尝试构建My WF项目时,我收到此错误。 I've found that removing
System.Activities.Presentation
solves this error. 我发现删除
System.Activities.Presentation
可以解决此错误。 If I get this error at runtime, I can investigate LoaderExceptions
to find out about the root problem. 如果我在运行时收到此错误,我可以调查
LoaderExceptions
以找出根问题。
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.
扩展“Microsoft.Activities.Build.Validation.ValidationBuildExtension”引发了类型为“System.Reflection.ReflectionTypeLoadException”的异常:'无法加载一个或多个请求的类型。 Retrieve the LoaderExceptions property for more information.'.
检索LoaderExceptions属性以获取更多信息。'。
Try this: 尝试这个:
Tools -> Options -> Projects and Solutions -> Build and Run -> MsBuild project build output verbosity -> Detailed (or diagnostic) 工具 - >选项 - >项目和解决方案 - >构建和运行 - > MsBuild项目构建输出详细程度 - >详细(或诊断)
Visual studio will include much more detailed information about the build process in the output window. Visual Studio将在输出窗口中包含有关构建过程的更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.