title: Compiling VS 2012 project programmatically?
body: <p>I have this class library project sitting in a solution. </p>
  
  <p>My need is to be able to embed resources (all files from 'Resources' folder) into DatabaseResources.resx and compile it all into an assembly, on the fly.</p>
  
  <p><img src="https://i.stack.imgur.com/1gDHO.jpg" alt="enter image description here"></p>
  
  <p>I tried CSC and was able to compile it</p>
  
  <pre><code>csc /target:library /out:MyClassLibrary.dll  /res:ContentChangeLog.gz /res:CountryBillingRules.gz /res:Finance.gz /res:Instructions.xml /res:Language.gz /res:Masters.gz /res:wbs.gz /res:wbsList.gz 
  </code></pre>
  
  <p>But, MyClassLibrary.dll should be exposing these resources thru DatabaseResources.resx so that others can find it- MyClassLibrary.DatabaseResources.(resource name)</p>
  
  <p><img src="https://i.stack.imgur.com/YnTFv.jpg" alt="enter image description here"></p>
  
  <p>I couldn't find a way to do the same with CSC.</p>
  
  <p>Any help appreciated.</p>