Is there a managed API for compiling C # applications (into memory or disk)? I assume it exists because SharePoint compiles ASP.NET pages in memory. We want to use it at runtime, generate Linq DataContextand compile them for different projects.
DataContext
Take a look at the Microsoft.CSharp.CSharpCodeProvider class . There is sample code on this page on how to use this class to compile C # sources.
Note . This class cannot be used in partial trust. You need to run with full trust in order to be able to run the C # compiler.
, CSharpCodeProvider - , .
# "Snippy", "" # - , , CSharpCodeProvider. - .
Source: https://habr.com/ru/post/1698594/More articles:How to compile Flex in Visual Studio 2005/2008? - cИконка Фон на IE6 - internet-explorer-6Site Management Software for ASP.NET - asp.netHow to run a very large query (SQL Server and ColdFusion) - coldfusionClient settings - designсинхронизация двух списков с помощью VBA - vbaConnecting Silverlight to Local Computers COM Port - .netСортировать облако меток в алфавитном порядке в act_as_taggable_on_steroids - ruby-on-railsSolving inequality for minimum value - pythonBest practice for a collection of generic classes - collectionsAll Articles