Skip to content

Overview

Leksiqq edited this page Sep 18, 2023 · 5 revisions

Attention! This article, as well as this announcement, are automatically translated from Russian.

The Net.Leksi.RuntimeAssemblyCompiler library allows you to compile and load assemblies while your application is running. This may be useful for testing.

All classes are contained in the Net.Leksi.RuntimeAssemblyCompiler namespace.

Project - the main class that does all the work of configuring and compiling projects.

ProjectOptions - sets the project configuration.

OutputType - an enumeration whose elements correspond to the values of the property of the same name in the project file.

MissedTypeEventArgs - Event handler argument for Project.MissedType.

MissedTypeEventHandler - Event handler for Project.MissedType.

Important: the .NET SDK must be installed to work with the library!

It is also proposed to familiarize yourself with the demonstration projects:

  • Demo:WebApp - "Hello world" is a web application that is generated at runtime.
  • Demo:UnitTesting - a test set of projects that is used to test the library itself.

Sources are here

NuGet package: Net.Leksi.RuntimeAssemblyCompiler

Next: (Project)

Clone this wiki locally