Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi every body,
I have a function
C#
public void H_addform()
{
    Microsoft.Build.BuildEngine.Project proj = new Microsoft.Build.BuildEngine.Project();
    string projFileName = "../../Auto_Source.csproj";
    proj.Load(projFileName);
    proj.AddNewItem("Compile", "SampleCode.cs");
    //proj.a
    proj.Save(projFileName);

}

When i call this function visual have warning source has modifires, require i reload. How to automatically reload by code? Not use Environment > Document > Auto-Load Changes, if save....
Thank so much,
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900