codedom Questions

2

Solved

I am about to migrate a bunch of projects from .NET 4.0 + MVC 3 to .NET 4.5.2 + MVC5. To make this easier, I've created a new blank MVC project to compare DLL references and some other stuff such ...
Mapes asked 31/12, 2015 at 11:6

5

Solved

I would like to correctly indent some VB.NET code contained within a text file. Is there some way to do this? e.g. Start with this: Public Shared Function CanReachPage(page As String) As Boolean ...
Wimbush asked 11/2, 2014 at 9:27

2

I'm facing an ASP.NET error while deploying on a server: The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompi...
Chen asked 8/7, 2019 at 14:46

5

Solved

From a press release yesterday on InfoWorld regarding the new Microsoft Roslyn: The most obvious advantage of this kind of "deconstructed" compiler is that it allows the entire compile-execute ...
Portentous asked 21/10, 2011 at 17:17

6

Solved

CodeDomProvider objCodeCompiler = CodeDomProvider.CreateProvider( "CSharp" ); CompilerParameters objCompilerParameters = new CompilerParameters(); ... CompilerResults objCompileResults = objCode...
Nicolanicolai asked 26/7, 2015 at 17:0

5

Solved

In my application I compile another program from source.cs file using CodeDom.Compiler and I embed some resources ( exe and dll files ) at compile time using : // .... rest of code if (provider....

2

Trying to compile this sample of code: var c = new CSharpCodeProvider(); var cp = new CompilerParameters(); var className = $"CodeEvaler_{Guid.NewGuid().ToString("N")}"; // doesn't work with or wi...

1

Solved

I am creating a designer surface and loading the controls to a runtime. I am having issues when deserializing/loading the controls to the runtime. All methods I have tried seem to have some type ...
Superorder asked 30/12, 2019 at 11:9

2

I've got a solution which contains c# projects, some netstandard 2.0 and others .net4.7. The startup project is of course net47. At one point, the project creates code using CodeDom and compiles i...
Alphabetic asked 10/11, 2017 at 9:43

2

Solved

Is there a way to generate a dictionary initializer using the C# CodeDom? Are those supported at all? I would like to have: private IDictionary<string, string> map = new Dictionary<strin...
Rosana asked 15/6, 2010 at 20:13

1

I know we can enforce generating the members within the classes in the same order as within the members-collection as stated on MSDN. However I look for some code that also adds a serialization-att...
Passel asked 2/8, 2016 at 8:17

1

There are numerous examples on the web that show how to use the CodeDomSerializer. Most of them show how to override the Serialize and Deserialize methods of that class. The problem is that this Se...
Herewith asked 14/11, 2017 at 16:30

6

Solved

I have a situation where i want to add LinePragmas to CodeDom objects. But some code dom objects have the LinePragma property and some don't. So I'm wondering if it's possible to use the dynamic ...
Curling asked 1/7, 2009 at 20:35

2

We recently upgraded from an old CodeDomProvider to the new Roslyn CodeDomProvider called Microsoft.CodeDom.Providers.DotNetCompilerPlatform. It works fine, but it looks for the csc.exe in the wron...
Cordeelia asked 15/2, 2017 at 22:2

1

Solved

I figure something silly is going on as the remaining assembly level attributes can be included just fine but whenever AssemblyCopywriteAttribute or AssemblyCompanyAttribute is declared it results ...
Proteus asked 27/6, 2015 at 18:36

1

When trying to deserialize using the ComponentSerializationService, errors are populated that references were not found: public ICollection Deserialize(object serializationData) { var serializati...
Saintmihiel asked 3/3, 2016 at 8:20

2

Here's my current situation - I have an application that compiles C# code taken in as a string, using CodeDom. I have a SecureString that stores a password and I was wondering if there would be any...
Halflife asked 28/7, 2015 at 16:26

6

Solved

What I want to do is to read C# code, parse it, insert some method calls and compile it finally. Is it possible to convert C# source code (a list of strings) to CodeDOM objects?
Retardment asked 3/10, 2009 at 16:15

5

Solved

is there a way Generate C# automatic properties with Codedom or maybe an other set of libreries that i can use ?
Raiment asked 23/1, 2010 at 10:34

2

Solved

I have a class that I created using CodeDOM: CodeTypeDeclaration some_class = new CodeTypeDeclaration("SomeClass"); // ... properties and methods creation elided I want to create a List of the "...
Baron asked 28/2, 2012 at 22:5

1

Solved

I'm trying to parse a simple.cs source file using the following code: CodeDomProvider provider = CodeDomProvider.CreateProvider("CSharp"); var compileUnit = provider.Parse(File.OpenText(filename))...
Shepherd asked 29/9, 2014 at 5:51

2

Solved

I have a property created with CodeDom. How can I set it to being an automatic property instead of adding CodeFieldReferenceExpressions against a private member?
Schiedam asked 24/2, 2009 at 20:46

2

Visual Studio IntelliSense for VC++ includes the "complete" EDG C++ parser (also used by Intel and others). Since the C# Code DOM is accessible to addons (correct me if I'm wrong), is the C++ Code ...
Puparium asked 9/4, 2014 at 8:51

2

Solved

I have a situation where one part of my code is generated through CodeExpressions and the other by the user himself (as in: the user simply writes his code as usual, which I would then take and add...
Esqueda asked 5/4, 2014 at 20:17

1

Ok, I feel like the answer to my question is online, but I cannot find it. All I'm trying to do is add a text resource file to the program I'm compiling with CodeDom and then access that text file ...
Condenser asked 2/12, 2012 at 6:22

© 2022 - 2024 — McMap. All rights reserved.