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. ICodeCompiler: C# Compiler article

ICodeCompiler: C# Compiler article

Scheduled Pinned Locked Moved C#
helpcsharpdebuggingtutorial
7 Posts 3 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.
  • O Offline
    O Offline
    Orion Buttigieg
    wrote on last edited by
    #1

    hello, this by the way is an excellent article. shows how to deal with the CodeDom object. i've been making some use of this object with some success. i can create the dll and write it to disk. the problem is that i'm trying to write the dll being generated to a directory of my choice. codeCompiler.CompileAssemblyFromSource(compilerParamaters, sourceWSProxy); this line automatically generates the dll in the bin\Debug of the application directory. i can't seem to over ride this. hope someone can help with this one. thanks Orion Orion

    T 1 Reply Last reply
    0
    • O Orion Buttigieg

      hello, this by the way is an excellent article. shows how to deal with the CodeDom object. i've been making some use of this object with some success. i can create the dll and write it to disk. the problem is that i'm trying to write the dll being generated to a directory of my choice. codeCompiler.CompileAssemblyFromSource(compilerParamaters, sourceWSProxy); this line automatically generates the dll in the bin\Debug of the application directory. i can't seem to over ride this. hope someone can help with this one. thanks Orion Orion

      T Offline
      T Offline
      Tom Archer
      wrote on last edited by
      #2

      Um, what article? Cheers, Tom Archer Author, Inside C# A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.

      J O 2 Replies Last reply
      0
      • T Tom Archer

        Um, what article? Cheers, Tom Archer Author, Inside C# A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.

        J Offline
        J Offline
        James T Johnson
        wrote on last edited by
        #3

        This one :) James Simplicity Rules!

        1 Reply Last reply
        0
        • T Tom Archer

          Um, what article? Cheers, Tom Archer Author, Inside C# A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.

          O Offline
          O Offline
          Orion Buttigieg
          wrote on last edited by
          #4

          hello Tom, if you search this site for ICodeCompiler or CodeDom you should get a couple of articles. one by Konrad Rotuski "C# Compiler" and the other by Shawn Wildermuth "Runtime C# Expression Evaluator ". both are basically the same. here's the link to the first one. http://www.codeproject.com/csharp/cscompiler.asp thanks Orion

          T 1 Reply Last reply
          0
          • O Orion Buttigieg

            hello Tom, if you search this site for ICodeCompiler or CodeDom you should get a couple of articles. one by Konrad Rotuski "C# Compiler" and the other by Shawn Wildermuth "Runtime C# Expression Evaluator ". both are basically the same. here's the link to the first one. http://www.codeproject.com/csharp/cscompiler.asp thanks Orion

            T Offline
            T Offline
            Tom Archer
            wrote on last edited by
            #5

            Yeah. I know where the article is. :) The subtle point was to let you know that you need to include links like this instead of assuming the people helping out here have the time to go searching for them ;) Cheers, Tom Archer Author, Inside C# A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.

            O 1 Reply Last reply
            0
            • T Tom Archer

              Yeah. I know where the article is. :) The subtle point was to let you know that you need to include links like this instead of assuming the people helping out here have the time to go searching for them ;) Cheers, Tom Archer Author, Inside C# A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.

              O Offline
              O Offline
              Orion Buttigieg
              wrote on last edited by
              #6

              your right. my apologies :) did you need any other info? the ICodeCompiler doesn't have any properties i can set. and the dll will be written before its assigned to the CompilerResults object. ideally i'd like to write it to the MS temp directory. Orion Orion

              T 1 Reply Last reply
              0
              • O Orion Buttigieg

                your right. my apologies :) did you need any other info? the ICodeCompiler doesn't have any properties i can set. and the dll will be written before its assigned to the CompilerResults object. ideally i'd like to write it to the MS temp directory. Orion Orion

                T Offline
                T Offline
                Tom Archer
                wrote on last edited by
                #7

                Orion Buttigieg wrote: your right. my apologies No worries. Just saves us time. Orion Buttigieg wrote: the ICodeCompiler doesn't have any properties i can set. and the dll will be written before its assigned to the CompilerResults object. Ideally i'd like to write it to the MS temp directory Actually, I've not worked through the demo and haven't needed to do what you're talking about. If nobody has figured this out by the time I get home (I'm on the way to pick up kids now), I'll look at it tonight and try and help. Cheers, Tom Archer Author, Inside C# A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.

                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