Skip to content

ReflectionTypeLoadException #4

Description

@xen2

When trying the demo app, I had a ReflectionTypeLoadException.

Its inner exceptions are:

+       [0] {"Method 'GetProcessor' in type 'VSEmbed.Roslyn.Dev14KeyProcessorProvider' from assembly 'VSEmbed.Roslyn, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.":"VSEmbed.Roslyn.Dev14KeyProcessorProvider"}  System.Exception {System.TypeLoadException}
+       [1] {"Method 'GetProcessor' in type 'VSEmbed.Roslyn.RoslynKeyProcessorProvider' from assembly 'VSEmbed.Roslyn, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.":"VSEmbed.Roslyn.RoslynKeyProcessorProvider"}    System.Exception {System.TypeLoadException}

It seems to be due to GetProcessor having a IWpfTextView parameter, and since VSEmbed assembly uses Microsoft.VisualStudio.Text.UI.Wpf from VS11 while VSEmbed.Roslyn assembly uses Microsoft.VisualStudio.Text.UI.Wpf from VS14.

I can work around it by replacing all VS references in VSEmbed and VSEmbed.DemoApp to VS14 one.
It happened on two different PC having both VS11 and VS14 installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions