Computing.Net > Forums > Programming > Microsoft CSharp Compiler Compile

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Microsoft CSharp Compiler Compile

Reply to Message Icon

Name: El-Trucha
Date: March 27, 2005 at 13:31:20 Pacific
OS: Windows XP SP2
CPU/Ram: 2.8 GHz/448 MB
Comment:

Hello every1!! :D
OK, this is very weird...I've read on the MSDN documentations that there's a namespace called "Microsoft.CSharp" and that it contains a class called "Compiler" with a method called "Compile", which I need to use...but there's a problem, I have this at the top:


using Microsoft.CSharp;

Then I type in "Compiler." and IntelliSense doesn't do anything...so then I try "Microsoft.CSharp." and Compiler isn't in the list!! :(
What's the problem?? do I need to include a reference??
Thanx!! ;)

(PS: I used spaces instead of dots on the subject because it said it wasn't valid...)

El-Trucha
http://www.truchasoft.tk
ftp://tsfc.homeftp.net
hotline://tsfc.ath.cx



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: March 28, 2005 at 09:30:44 Pacific
Reply:

What you are talking about is called the Managed C# Compiler. This is used for doing otf (on-the-fly) complies. For instance, let's say that you want to have modules that can extend your program. you can have .cs files that are compiled against a core system at run-time.

To use this you must right-click on References from within the Solution Explorer and choose Add Reference. Then press the letter M and you should be at Managed C# compiler. click ADD and then OK and you will have added the reference to your app.

Then in the class where you want to use it...at the top in the using section type:
using Microsoft.CSharp.

Then within that class you can type:
Microsoft.CSharp. and Compiler will popup (along with other stuff)

Hope this help,
Chi


They mostly come at night...mostly


0

Response Number 2
Name: El-Trucha
Date: March 28, 2005 at 15:41:28 Pacific
Reply:

Managed C# Compiler...so that was it, huh?? MUCH THANX!!!!! ;) ;) ;) !! :P

El-Trucha
http://www.truchasoft.tk
ftp://tsfc.homeftp.net
hotline://tsfc.ath.cx


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Microsoft CSharp Compiler Compile

compile problem www.computing.net/answers/programming/compile-problem/593.html

Microsoft C/C++ Compiler 6.0/7.0 for DOS www.computing.net/answers/programming/microsoft-cc-compiler-6070-for-dos/2079.html

How EXE java compiler in Java Code? www.computing.net/answers/programming/how-exe-java-compiler-in-java-code/2492.html