mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
VerificationException: Operation could destabilize the runtime. Silverlight 5.0 #124
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ykhenokh on GitHub (Jul 27, 2017).
installed Markdig 0.12.3 from NuGet into Silverlight project. packages.config:
<package id="Markdig" version="0.12.3" targetFramework="sl50" />
Called Markdown.ToHtml("test") from Silverlight 5.0 app and got this back:
{System.Security.VerificationException: Operation could destabilize the runtime.
at Markdig.Helpers.CharacterMap
1.IndexOfOpeningCharacter(String text, Int32 start, Int32 end) at Markdig.Parsers.ParserList2.IndexOfOpeningCharacter(String text, Int32 start, Int32 end)at Markdig.Parsers.Inlines.LiteralInlineParser.Match(InlineProcessor processor, StringSlice& slice)
at Markdig.Parsers.InlineProcessor.ProcessInlineLeaf(LeafBlock leafBlock)
at Markdig.Parsers.MarkdownParser.ProcessInlines()
at Markdig.Parsers.MarkdownParser.Parse()
at Markdig.Parsers.MarkdownParser.Parse(String text, MarkdownPipeline pipeline)
at Markdig.Markdown.Parse(String markdown, MarkdownPipeline pipeline)
at Markdig.Markdown.ToHtml(String markdown, TextWriter writer, MarkdownPipeline pipeline)
at Markdig.Markdown.ToHtml(String markdown, MarkdownPipeline pipeline)
.....
@xoofx commented on GitHub (Jul 28, 2017):
Wow, you are using Markdig with Silverlight...
Well, this method is using unsafe and it appears that Silverlight doesn't support this well
Will check assembly .NET fwk targets and how to make nuget resolution playing well for Silverlight...
@xoofx commented on GitHub (Jul 31, 2017):
Should be fixed by
a7786d9and part of up-coming 0.12.4