MarkdownView icon indicating copy to clipboard operation
MarkdownView copied to clipboard

raises System.Reflection.TargetInvocationException

Open Chris-Marassovich opened this issue 4 years ago • 0 comments

This one was hard to resolve as you don't get much more detail but I believe I found the issue.

  1. Start with a standard Xamarin Forms new app.
  2. Add your nuGet which is currently v1.5.2 and I note you have a dependancy on Markdig >=0.15.0.
  3. Follow your sample doco and add MarkdownView to a page. If you spin up the app the page renders fine with your control.
  4. Now add the nuGet Markdig which is at v0.25.0.
  5. Spin up the app and when you nav to the page with the MarkdownView control you will get the exception.
  6. Remove the Markdig nuGet and error goes away.

I assume following those steps the latest nuGet of Markdig is in play and there is a breaking change that MarkdownView does not like.

For me this is not a big issue as I can use the version of Markdig pulled in by the MarkdownView but one day v0.15.0 of Markdig may be simply too old.

This error occurs on both iOS and Droid platforms.

Let me know if you require further details. Regards Chris ...

Chris-Marassovich avatar Aug 18 '21 04:08 Chris-Marassovich