c# compiler -> vb.net compiler problem ??
-
I am wrting a .NET run-time compiler. It is fine if i compile a C# code using the following code : Microsoft.CSharp.CSharpCodeProvider = new Microsoft.CSharp.CSharpCodeProvider (); ICodeCompiler compiler = provider.CreateCompiler (); CompilerParameters compilerparams = new CompilerParameters (); CompilerResults results = compiler.CompileAssemblyFromSource(compilerparams, code); the compiler run fine. But if i change the comipler to compile a VB.NET code as: Microsoft.VisualBasic.VBCodeProvider provider = new Microsoft.VisualBasic.VBCodeProvider (); ICodeCompiler compiler = provider.CreateCompiler (); CompilerParameters compilerparams = new CompilerParameters (); CompilerResults results = compiler.CompileAssemblyFromSource(compilerparams, code); it is a error at the last line !!! what cause the problem ???? In fact, there are a serveral assembilies i wrote in C# in order to compiler the source code. Does this possibly cause the problem ? it sounds so strange !!!!
-
I am wrting a .NET run-time compiler. It is fine if i compile a C# code using the following code : Microsoft.CSharp.CSharpCodeProvider = new Microsoft.CSharp.CSharpCodeProvider (); ICodeCompiler compiler = provider.CreateCompiler (); CompilerParameters compilerparams = new CompilerParameters (); CompilerResults results = compiler.CompileAssemblyFromSource(compilerparams, code); the compiler run fine. But if i change the comipler to compile a VB.NET code as: Microsoft.VisualBasic.VBCodeProvider provider = new Microsoft.VisualBasic.VBCodeProvider (); ICodeCompiler compiler = provider.CreateCompiler (); CompilerParameters compilerparams = new CompilerParameters (); CompilerResults results = compiler.CompileAssemblyFromSource(compilerparams, code); it is a error at the last line !!! what cause the problem ???? In fact, there are a serveral assembilies i wrote in C# in order to compiler the source code. Does this possibly cause the problem ? it sounds so strange !!!!
Tee+ wrote:
it is a error at the last line !!! what cause the problem ????
Probably your code. An indication of the error you receive would be helpful. xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
-
Tee+ wrote:
it is a error at the last line !!! what cause the problem ????
Probably your code. An indication of the error you receive would be helpful. xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
Seems that it is not my code error: System.IO.FileNotFoundException: Could not find file "C:\DOCUME~1\Vithan\LOCALS~1\Temp\srxzw0s0.dll". File name: "C:\DOCUME~1\Vithan\LOCALS~1\Temp\srxzw0s0.dll" at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.CodeDom.Compiler.CodeCompiler.FromFileBatch(CompilerParameters options, String[] fileNames) at System.CodeDom.Compiler.CodeCompiler.FromSourceBatch(CompilerParameters options, String[] sources) at System.CodeDom.Compiler.CodeCompiler.FromSource(CompilerParameters options, String source) at System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSource(CompilerParameters options, String source) at Utility.ActionScript.BuildAssembly(String code) Please help.