public void AddImport(string targetPath, ProjectImportLocation location) { GuiSyncDispatch(() => { string relativeTargetPath = GetRelativePath(targetPath); project.AddImportIfMissing(relativeTargetPath, null); project.Save(); }); }
public void AddImport(string targetPath, ProjectImportLocation location) { GuiSyncDispatch(async() => { string relativeTargetPath = GetRelativePath(targetPath); string condition = GetCondition(relativeTargetPath); project.AddImportIfMissing(relativeTargetPath, condition); await project.SaveAsync(); }); }