CompileAssemblyFromSource() throws a "not implemented" exception

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using the June CTP of VS2005

I have code that loads a script, and based on the extension, creates the
appropriate CodeDom provider and calls the CompileAssemblyFromSource()
function.

This works fine with C#, J#, JScript, and VB, but if I pass it a ".h" file,
so that the CppCodeProvider is the provider created, then when I call
CompileAssemblyFromSource() I get a System.NotImplementedException at
Microsoft.VisucalC.CppCodeProvider.CreateCompiler().

Is there something special for C++ that I need to do that I don't need for
the other languages, or is this just broken in the current beta?

Brian C. Barnes
 
Brian said:
Using the June CTP of VS2005

I have code that loads a script, and based on the extension, creates the
appropriate CodeDom provider and calls the CompileAssemblyFromSource()
function.

This works fine with C#, J#, JScript, and VB, but if I pass it a ".h" file,
so that the CppCodeProvider is the provider created, then when I call
CompileAssemblyFromSource() I get a System.NotImplementedException at
Microsoft.VisucalC.CppCodeProvider.CreateCompiler().

Is there something special for C++ that I need to do that I don't need for
the other languages, or is this just broken in the current beta?

Brian C. Barnes

Maybe you should use ".cpp" instead of ".h" file?
£ukasz ¦wi±tkowski
 
Thanks for the reply, but it made no difference. Interestingly, the provider
itself tells you what extension to use, and CppCodeProvider says that it
wants ".h" and "h" extensions - it doesn't even include ".cpp" as one it
understands.
 
Back
Top