Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. c# compiler -> vb.net compiler problem ??

c# compiler -> vb.net compiler problem ??

Scheduled Pinned Locked Moved C#
csharphelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tee
    wrote on last edited by
    #1

    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 !!!!

    L 1 Reply Last reply
    0
    • T Tee

      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 !!!!

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      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!

      T 1 Reply Last reply
      0
      • L leppie

        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!

        T Offline
        T Offline
        Tee
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups