using codedom to compile dll + other files(c#)

red

Member
Joined
Oct 16, 2013
Messages
15
Programming Experience
1-3
Using codedom to compile different dlls + c# files, has been one of my major issues for sometime. How do I get to use codedom to compile different c#files I was thinking I use referenced aeemblies or it sort of.
I need some sort of help, please do help me as soon as possible
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,141
Location
Sydney, Australia
Programming Experience
10+
I've never used CodeDOM myself but I just spent 5 or 10 minutes searching and reading and it appears that you would create a CSharpCodeProvider instance, call its CreateCompiler method to get an ICodeCompiler instance and then call CompileAssemblyFromFileBatch on that. There will be a few other details in there too but that's the bones of it.
 
Top Bottom