I've got a small app, which can compile .cs Scripts using CSharpCodeProvider It worked fine for years. Now I've tried a new script and I run into comp ...
I've got a small app, which can compile .cs Scripts using CSharpCodeProvider It worked fine for years. Now I've tried a new script and I run into comp ...
I'v been facing this problem for hours now. I'm playing a little bit with codedom but i get : a type or namespace Threading not found. My compilator ...
I want to add another property public int ID { get; set; } to the class below using C#. I don't know if there is a way beside T4 or partial class. How ...
I want to force the compiled program to use the dll from the %temp% folder. However, if I do like that The program crashes. I have also added usi ...
I have some code which must be able to generated a console application at runtime (Codegeneration with System.CodeDom). I did this already a lot, but ...
I am using GenerateCodeFromCompileUnit and IndentedTextWriter to Generate Code from C# Source File. Doing this I am able to Generate a .cs file. But I ...
I used the following answers to test compile code: https://stackoverflow.com/a/21382083/9942758 https://stackoverflow.com/a/14711110/9942758 Here i ...
I am using CodeDom Compiler and Microsoft.CSharp, I am trying to embed a resource and call it. The reason I don't try to call properties is because I ...
I am trying to generate auto propery using codedom but with no luck. I tried different solutions and each one causing issue. I am trying to generate s ...
I have some user inputs of type string[] for calculations. I want to compile them and get faster computation than any other method. User input string ...
I'm try to improve our dynamic reporting system. I would like to add event handle to the object I've dynamically created on the form. One of the funct ...
I have created a custom Component, derived from BindingSource and it seems to work as expected. When I drop it on a Form, I can set all properties and ...
How to execute the following code in Codedom: I'm familiar with CodeIterationStatement and CodeConditionStatement but don't know how to execute it. ...
Can someone help me and tell me what am I doing wrong with this code. The Output is supposed to look like this on a file: This is how my code looks ...
C# supports the static modifier on a class definition to define a class which cannot be inherited, is sealed, and has only static members. VB.NET supp ...
I'm using CodeDom to build smart classes from an XSD file. To do that I create I do the following Inside the XSD are some multidimensions arrays (g ...
My code is this: The .cs Files in /Sourcecode/ contain the following code: $"Hello {name}" When I compile the Files I get this Error: error CS1056 ...
I'm creating a class file (.cs) with CodeDom: I'm creating different attributes of different types like System.Drawing.Color or my custom classes. ...
When trying to learn CodeDom under Ms visual studio, I noticed that the code generation seems to ignore the member attributes set for my class. This ...
I'm coding a complex application that makes use of CodeDom to instantiate objects with reflection. It is, however, mixed between netstandard2.0 (the w ...