Net.Leksi.RuntimeAssemblyCompiler 2.0.5

dotnet add package Net.Leksi.RuntimeAssemblyCompiler --version 2.0.5
NuGet\Install-Package Net.Leksi.RuntimeAssemblyCompiler -Version 2.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Net.Leksi.RuntimeAssemblyCompiler" Version="2.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Net.Leksi.RuntimeAssemblyCompiler --version 2.0.5
#r "nuget: Net.Leksi.RuntimeAssemblyCompiler, 2.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Net.Leksi.RuntimeAssemblyCompiler as a Cake Addin
#addin nuget:?package=Net.Leksi.RuntimeAssemblyCompiler&version=2.0.5

// Install Net.Leksi.RuntimeAssemblyCompiler as a Cake Tool
#tool nuget:?package=Net.Leksi.RuntimeAssemblyCompiler&version=2.0.5

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.

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.

More info...

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.5 190 12/15/2023
1.5.5 166 12/2/2023
1.5.4 143 11/29/2023

2.0.0 Проведён рефакторинг, удалено всё, что не пригодилось. Добавлена компиляция существующего проекта.
     2.0.0 Refactoring was carried out, everything that was not useful was removed. Added compilation of an existing project.

     1.5.4 NET8.0-windows

     1.5.2 Исправлена ошибка, связанная с возможным добавлением неуникальной ссылки.
     1.5.2 Fixed a bug related to the possible addition of a non-unique reference.

     1.5.1 Добавлена функциональность для запроса во время компиляции недостающих ссылок на библиотеки.
     Исправлены ошибки добавления ссылок и содержимого относительными путями.
     1.5.1 Added functionality to query during compilation for missing library references.
     Fixed bugs when adding references and contents using relative paths.

     1.4.1 Добавлена функциональность:
     возможность включать в проект ссылки на библиотеки;
     возможность проверки ранее включенных в проект ссылок на проекты, пакеты, содержимое и библиотеки.
     1.4.4 Added functionality:
     the ability to include links to libraries in the project;
     the ability to check links to projects, packages, content and libraries previously included in the project.

     1.3.6 Исправлены найденные ошибки.
     1.3.6 Found bugs fixed.

     1.3.0 Добавлена возможность получить абсолютный путь к сгенериррованному файлу проекта.
     Добавлена возможность установить обработчик события, что файл проекта сгенерирован, так что есть возможность
     обработать его дополнительно перед компиляцией.
     Исправлены найденные ошибки.
     1.3.0 Added the ability to get the absolute path to the generated project file.
     Added the ability to set an event handler that the project file has been generated, so it is possible
     process it further before compiling.
     Found bugs fixed.

     1.2.1 Добавлена возможность получить абсолютный путь к созданному nuget-пакету.
     Исправлены ошибки при работе с nuget-пакетами, создаваемыми во время исполнения.
     1.2.1 Added the ability to get the absolute path to the created nuget package.
     Fixed bugs when working with nuget packages created at runtime.

     1.2.0  Добавлена возможность задать локаль вывода компилятора.
     Изменена структура папки назначения проекта.
     Изменена конфигурация по умолчанию на специальную: RAC.
     Задание конфигурации, отличной от конфигурации по умолчанию, перенесено в ProjectOptions.
     1.2.0 Added the ability to set the compiler output locale.
     The structure of the project destination folder has been changed.
     Changed default configuration to special: RAC.
     Setting a non-default configuration has been moved to ProjectOptions.

     1.1.0 Добавлена функциональность:
     возможность игнорировать определённые предупреждения компилятора;
     возможность выбрасывать исключение при наличии предупреждений компилятора, кроме игнорируемых;
     возможность получать лог компиляции в виде строки при выключенном режиме IsVerbose;
     возможность использовать дополнительные опции компилятора;
     возможность задавать расположение программы dotnet.exe.
     1.1.0 Added functionality:
     the ability to ignore certain compiler warnings;
     the ability to throw an exception in the presence of compiler warnings, except for ignored ones;
     the ability to receive the compilation log as a string when the IsVerbose mode is off;
     the ability to use additional compiler options;
     the ability to set the location of the dotnet.exe program.


     1.0.38 Исправлен метод Project.GetLibraryFile(string path).
     1.0.38 Project.GetLibraryFile(string path) method fixed.

     1.0.37 Добавлены методы, чтобы определить или отменить определение символов для условной компиляции.
     1.0.37 A possibility to define or undefine symbols for conditional compilation added.