Help needed compiling with CSharpCodeProvider.

  • Thread starter Thread starter london calling
  • Start date Start date
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
 
with vs2005, vs2008RTM - it used to have vs2008 beta2

Did you uninstall the CTP before installing the RTM?

/ravi
 
Hi Ravi, thanks for the response.. I did uninstall beta 2 before installing
the rtm..
 
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
 
Back
Top