Awesome: Building strongly typed application configuration utility with Roslyn use Roselyn scripting engine to delegate to an external script filling a strongly typed instance.
The complete code is already very short but all is really made in only 3 lines :
- fill a ScriptOptions instance,
- creating a CSharpScript and
- running it asynchroniously.
For a production use, script error detection must be added and a way to add new references from script itself (and perhaps nuget references).
EDIT: I’ve neglected to follow a link about ConfigR: same needs but some step head. ConfigR use scriptcs on top of Roselyn to provide more possibilities: load sub script, add reference, use predefined packs (nuget packages but more script friendly using MEF) and debugging.