title: Is there any MSBuild alternative?
body: <p>**I'm an under training student with so few experience of C#.
  Our company is developing a solution using T4 templates (C# VS2010).
  The generated files can't be compiled under MSBuild because it is VS dependent.
  My task is to find a tool or a library or a .dll file or SDK or any thing that can replace VS in building time. Other wise I have to modify the generated code to be VS independent my selef, which I think is a diffucult task for me.
  code samble:</p>
  
  <pre><code>Project GetProjectContainingT4File(DTE dte) {
  
  // Find the .tt file's ProjectItem
  
  ProjectItem projectItem = dte.Solution.FindProjectItem(Host.TemplateFile);
  
  // If the .tt file is not opened, open it
  
  if (projectItem.Document == null)
  
      projectItem.Open(Constants.vsViewKindCode);
  
  if (AlwaysKeepTemplateDirty) {
  
      // Mark the .tt file as unsaved. This way it will be saved and update itself next time the
  
      // project is built. Basically, it keeps marking itself as unsaved to make the next build work.
  
      // Note: this is certainly hacky, but is the best I could come up with so far.
  
      projectItem.Document.Saved = false;
  
  }
  
  return projectItem.ContainingProject;
  
  }
  </code></pre>
  
  <p>I would appreciat your help.**</p>