Start
https://www.nuget.org/packages/ProjectVs/
- add files to a visual studio project using C#
Create a unit test project Add nuget package
PM> Install-Package ProjectVs
Create a class library project called "vs" to your solution Open the folder of the vs project Add two files called vs1.cs and vs1.child.cs Go back to your unit test and in the unittest copy this code
var project = new VisualStudioProject();
project.ProjectName = "vs";
project.ProjectPath = @"[replace with your projectpath]";
project.AddClass("vs1.cs");
project.AddClass("vs1.child.cs", "vs1.cs");
project.Save();