IDefinitionActivity IBuildActivity.SetBuildDirectoryRoot(string directoryName)
{
UseExistingBuild = false;
if (!Directory.Exists(directoryName))
throw new ApplicationException("provided build and package root does not exist!");
DirectoryRoot = directoryName;
// create the two instances of the files we need to use to manipulate the content
_manager.CscfgFileInstance = CscfgFile.GetInstance(Path.Combine(DirectoryRoot, Constants.CscfgFilename));
_manager.CsdefFileInstance = CsdefFile.GetInstance(Path.Combine(DirectoryRoot, Constants.CsdefFilename));
return _manager;
}