Question

I was trying to play with MardownSharp in a Windows 8 app. But I'm getting errors in the Mardown.cs file. It doesn't have System.Configuration and RegexOptions.Compiled.

Markdown.cs errors

Was it helpful?

Solution

You have two issues here.

  1. System.Configuration is not one of the .NET namespaces available for Windows Store applications. The good news is that it seems to be used only in one of the overloaded constructors of the Markdown class:

    public Markdown(bool loadOptionsFromConfigFile)

    Comment out that constructor (and the using statement). You could rewrite that constructor to make use of app local storage which would allow analogous functionality to a config file but not with quite the same implementation. I suspect you may not be using that overload anyway

  2. The code makes heavy use of the Compiled flag for regular expressions, which also isn't supported in this context. You should be able to safely remove all references to that flag.

With those modifications I was able to at least compile the code, I didn't take it further.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top