c# - Roslyn CTP - How to Write Changes To File System -


i created empty visual studio solution called solution.sln load workspace int first line. add project solution, , update workspace latest solution should contain project. how write out files new stuff added empty solution?

using system; using system.collections.generic; using system.linq; using system.text; using roslyn.compilers; using roslyn.compilers.csharp; using roslyn.services;  namespace roslynmainapp  {     class program      {         static void main(string[] args)          {             iworkspace workspace = workspace.loadsolution(@"c:\roslynsolutions\solution.sln");             projectid projectid;              isolution solution = solution.create(solutionid.createnewid("solution"));             solution.addcsharpproject("project1.dll", "project1", out projectid);             var success = workspace.applychanges(workspace.currentsolution, solution);              if(success)             {                 //how write out stuff added solution.sln directory roslynsolutions?             }         }     } } 

thanks in advance,

bob

the act of calling applychanges should write changes disk. however, note in ctp1, small set of changes can apply solutions implemented.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -