Help needed compiling with CSharpCodeProvider.

L

london calling

Hi there, I am using the CSharpCodeProvider to compile some cs source files
from within a console app.
The source files contain partial classes and methods so I need to use the
v3.5 compiler which I do with the IDictionary constructor. However I get the
error "Compiler executable file csc.exe cannot be found."
If I do not force v3.5 then I get an error related to the partial methods.

How can I provide the correct path to csc.exe? It is definately installed -
The code builds fine from within VS. The machine is Vista x64 with vs2005,
vs2008RTM - it used to have vs2008 beta2 - I wonder if the path is still
pointing to that but I'm not sure how to find out..

Any pointers would be appreciated.. cheers jd
 
R

Ravi Bhavnani

with vs2005, vs2008RTM - it used to have vs2008 beta2

Did you uninstall the CTP before installing the RTM?

/ravi
 
L

london calling

Hi Ravi, thanks for the response.. I did uninstall beta 2 before installing
the rtm..
 
L

london calling

Update: I have also tried running the console app on a machine without vs2008
but with .Net 3.5 framework installed. Same problem. BTW the app.config
contains a compilers/compiler section as per ms-help

Any more suggestions? jd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top