public virtual void AddImport(string targetPath, ProjectImportLocation location) { if (String.IsNullOrEmpty(targetPath)) { throw new ArgumentNullException(CommonResources.Argument_Cannot_Be_Null_Or_Empty, "targetPath"); } string relativeTargetPath = PathUtility.GetRelativePath(PathUtility.EnsureTrailingSlash(Root), targetPath); Project.AddImportStatement(relativeTargetPath, location); Project.Save(this); }