ReflectionTypeLoadException

When I try to create a My WF project, I get this error. I found that removing System.Activities.Presentationresolves this error. If I get this error at runtime, I can research LoaderExceptionsto find out about the root problem.

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

The extension 'Microsoft.Activities.Build.Validation.ValidationBuildExtension' threw an exception of the type 'System.Reflection.ReflectionTypeLoadException': 'One or more of the requested types failed to load. Get the LoaderExceptions property for more information. '.

+3
source share
1 answer

Try the following:

Tools → Options → Projects and Solutions → Assembly and Launch → Multi-page output of the MsBuild project assembly → Detailed (or diagnostic)

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

+2
source

All Articles