0

I am writing a PCL (Portable Class Library) in C#.

I was wondering how can I compile a C# code (given as string) and run it.

Already tried to use CSharpCodeProvider and CodeDomProvider but none of them is available in PCL and I didn't find NuGet package which contains them. Proable there is something I am missing.

Nikolay Kostov
  • 16,433
  • 23
  • 85
  • 123
  • The section ``Assemblies The following assemblies are available within a Portable Class Library project: `` of the page you provide a link for does not list the assemblies you need. That means... ;) – BitTickler Dec 11 '16 at 14:50
  • It doesn't mean that there is no NuGet package that will provide functionality for compiling C# code :) – Nikolay Kostov Dec 11 '16 at 14:53
  • 1
    For what platforms are you intending to write it for? Maybe you can just put interface in PCL and then make platform-specific implementation for each targeted platform? – Oleh Nechytailo Dec 11 '16 at 14:57
  • UWP and .NET Core – Nikolay Kostov Dec 11 '16 at 15:07

0 Answers0