Home All Groups Group Topic Archive Search About

Compile a c# code at runtime

Author
15 Jan 2005 2:05 PM
mrVithan
I have read the Microsoft.CSharp.CSharpCodeProvider in MSDN webpage and also
a few article according to compile a c# at runtime. But i found that these
pages still lack some completeness, such as, how to reference to external
DLL(s) from the c# or etc. Therefore, I am here to ask some of you that might
please tell me other articles that could be fullfill my need.

I have to build a project that have a custom c# code and it need to be
compiled and run on fire; in which the code has to reference serveral
external DLLs.

Please help me out.
Thank

Author
15 Jan 2005 2:47 PM
Miha Markic [MVP C#]
Hi,

Did you check
ICodeCompiler Interface
..net help file.
There is a CompilerParameters class that holds referenced assemblies.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com

Show quote
"mrVithan" <mrvithan at hotmail.com> wrote in message
news:6581A7E0-6079-4675-9E2F-A5D23B3CD068@microsoft.com...
>I have read the Microsoft.CSharp.CSharpCodeProvider in MSDN webpage and
>also
> a few article according to compile a c# at runtime. But i found that these
> pages still lack some completeness, such as, how to reference to external
> DLL(s) from the c# or etc. Therefore, I am here to ask some of you that
> might
> please tell me other articles that could be fullfill my need.
>
> I have to build a project that have a custom c# code and it need to be
> compiled and run on fire; in which the code has to reference serveral
> external DLLs.
>
> Please help me out.
> Thank
>
>
Author
15 Jan 2005 5:13 PM
mrVithan
I have already read that page ...... Well, actually what i need is a complete
example. ^^''

Show quote
"Miha Markic [MVP C#]" wrote:

> Hi,
>
> Did you check
> ICodeCompiler Interface
> ..net help file.
> There is a CompilerParameters class that holds referenced assemblies.
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & development
> SLODUG - Slovene Developer Users Group
> www.rthand.com
>
> "mrVithan" <mrvithan at hotmail.com> wrote in message
> news:6581A7E0-6079-4675-9E2F-A5D23B3CD068@microsoft.com...
> >I have read the Microsoft.CSharp.CSharpCodeProvider in MSDN webpage and
> >also
> > a few article according to compile a c# at runtime. But i found that these
> > pages still lack some completeness, such as, how to reference to external
> > DLL(s) from the c# or etc. Therefore, I am here to ask some of you that
> > might
> > please tell me other articles that could be fullfill my need.
> >
> > I have to build a project that have a custom c# code and it need to be
> > compiled and run on fire; in which the code has to reference serveral
> > external DLLs.
> >
> > Please help me out.
> > Thank
> >
> >
>
>
>
Author
19 Jan 2005 4:26 PM
mboizeau
Maybe  this is not the "complete example" you need but you may  find
the following interesting :
http://oraclevsmicrosoft.blogspot.com/2004/12/code-generation-with-net.html

Hope this helps.


OracleVsMicrosoft
Comments are welcome

http://OracleVsMicrosoft.blogspot.com




mrVithan wrote:
Show quote
> I have already read that page ...... Well, actually what i need is a
complete
> example. ^^''
>
> "Miha Markic [MVP C#]" wrote:
>
> > Hi,
> >
> > Did you check
> > ICodeCompiler Interface
> > ..net help file.
> > There is a CompilerParameters class that holds referenced
assemblies.
> >
> > --
> > Miha Markic [MVP C#] - RightHand .NET consulting & development
> > SLODUG - Slovene Developer Users Group
> > www.rthand.com
> >
> > "mrVithan" <mrvithan at hotmail.com> wrote in message
> > news:6581A7E0-6079-4675-9E2F-A5D23B3CD068@microsoft.com...
> > >I have read the Microsoft.CSharp.CSharpCodeProvider in MSDN
webpage and
> > >also
> > > a few article according to compile a c# at runtime. But i found
that these
> > > pages still lack some completeness, such as, how to reference to
external
> > > DLL(s) from the c# or etc. Therefore, I am here to ask some of
you that
> > > might
> > > please tell me other articles that could be fullfill my need.
> > >
> > > I have to build a project that have a custom c# code and it need
to be
> > > compiled and run on fire; in which the code has to reference
serveral
> > > external DLLs.
> > >
> > > Please help me out.
> > > Thank
> > >
> > >
> >
> >
> >

AddThis Social Bookmark Button