Simple solution compiler?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pnp

    #1

    Simple solution compiler?

    Is there a way to make a simple compiler that builds cs projects in a
    solution?

    thanks in advance,
    peter
  • Ravi

    #2
    RE: Simple solution compiler?

    Hi,
    You can use the following command in a batch file (.bat)

    devenv "<solutionfile> " /build "<debug/release>"

    This builds all the projects under the .sln file

    "pnp" wrote:
    [color=blue]
    > Is there a way to make a simple compiler that builds cs projects in a
    > solution?
    >
    > thanks in advance,
    > peter
    >[/color]

    Comment

    • Lebesgue

      #3
      Re: Simple solution compiler?

      Microsoft.CShar p.CSharpCodePro vider p = new CSharpCodeProvi der();
      ICodeCompiler compiler = p.CreateCompile r();
      CompilerParamet ers options = new CompilerParamet ers(new string[] {"mscorlib.dll" , "System.dll "}, myOutputAssembl yPath, true);
      CompilerResults res = compiler.Compil eAssemblyFromFi leBatch(options , fileNames);
      CompilerErrorCo llection errors = res.Errors;
      Assembly a = res.CompiledAss embly;

      "pnp" <pnp.@.softlab. ntua.gr> wrote in message news:O4ipbREYFH A.2996@TK2MSFTN GP10.phx.gbl...[color=blue]
      > Is there a way to make a simple compiler that builds cs projects in a
      > solution?
      >
      > thanks in advance,
      > peter[/color]

      Comment

      Working...