public void AddImport(string targetPath, ProjectImportLocation location)
 {
     GuiSyncDispatch(() => {
         string relativeTargetPath = GetRelativePath(targetPath);
         project.AddImportIfMissing(relativeTargetPath, null);
         project.Save();
     });
 }
Пример #2
0
 public void AddImport(string targetPath, ProjectImportLocation location)
 {
     GuiSyncDispatch(async() => {
         string relativeTargetPath = GetRelativePath(targetPath);
         string condition          = GetCondition(relativeTargetPath);
         project.AddImportIfMissing(relativeTargetPath, condition);
         await project.SaveAsync();
     });
 }