I am creating some classes by C# CodeDOM, in run time. then i include cs files that i created by CodeDOM in my project like this:
var p = new Microsoft.Build.Evaluation.Project(@"D:\imanSal\SmlpeApp\SmlpeApp\SmlpeApp.csproj");
p.AddItem("Compile", outputFileName + this.ClassName + ".cs");
p.Save();
p.Build();
Then im getting a File Modification detected warning because my project has been modified outside the environment, so I have to reload it. What must I do if I want to Reload my project programmatically in run time? what's the best solution for this?