I generated a bunch of file when ever a customer creates a new workspace and i want to add them to the existing project file what is the best way to that?
Criteria: It needs to work in visual studio and it needs to work in standalone build
// get the project file ...
var projectfile = Directory.GetFiles(Requested.Workspace.AppRoot, "*.csproj", SearchOption.AllDirectories).Single();
var project = new Project(projectfile);
// add generated items ...
foreach (var item in Requested.Manifest.Items)
{
project.Items.Add(new ProjectItem(item.Info.FullName,"??"));
}
if (!project.Build())
{
Console.ReadLine();
}
Help anyone?