PC Review


Reply
Thread Tools Rate Thread

Compile a c# code at runtime

 
 
=?Utf-8?B?bXJWaXRoYW4=?=
Guest
Posts: n/a
 
      15th Jan 2005
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


 
Reply With Quote
 
 
 
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      15th Jan 2005
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-(E-Mail Removed)...
>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
>
>



 
Reply With Quote
 
=?Utf-8?B?bXJWaXRoYW4=?=
Guest
Posts: n/a
 
      15th Jan 2005
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-(E-Mail Removed)...
> >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
> >
> >

>
>
>

 
Reply With Quote
 
mboizeau@free.fr
Guest
Posts: n/a
 
      19th Jan 2005
Maybe this is not the "complete example" you need but you may find
the following interesting :
http://oraclevsmicrosoft.blogspot.co...-with-net.html

Hope this helps.


OracleVsMicrosoft
Comments are welcome

http://OracleVsMicrosoft.blogspot.com




mrVithan wrote:
> 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-(E-Mail Removed)...
> > >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
> > >
> > >

> >
> >
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile at RunTime Saroj Microsoft VB .NET 2 6th Feb 2008 08:17 PM
Compile at runtime with VBCodeProvider without VS Frank Microsoft VB .NET 2 5th Feb 2007 04:11 PM
Compile VB6 Code Runtime 2006.ayan@gmail.com Microsoft VB .NET 1 24th Aug 2006 12:48 PM
Compile code at runtime & Add Reference & FileNotFoundException =?Utf-8?B?bm9ybWRAa25vcnJhc3NvY2lhdGVzLmNvbQ==?= Microsoft Dot NET 1 26th Feb 2005 08:38 PM
Compile code at runtime? Adam Clauss Microsoft C# .NET 1 9th Oct 2003 06:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:08 PM.