Пример #1
0
        public void RemoveAllReferences(Project project, string path)
        {
            if (project.IsLibraryAsset(path))
                project.SetLibraryAsset(path, false);

            if (project.IsCompileTarget(path))
                project.SetCompileTarget(path, false);
        }
Пример #2
0
 public void ToggleLibraryAsset(Project project, string[] paths)
 {
     foreach (string path in paths)
     {
         bool isResource = project.IsLibraryAsset(path);
         project.SetLibraryAsset(path, !isResource);
     }
     project.Save();
     OnProjectModified(paths);
 }
Пример #3
0
        public void MoveReferences(Project project, string fromPath, string toPath)
        {
            if (project.IsCompileTarget(fromPath))
            {
                project.SetCompileTarget(fromPath, false);
                project.SetCompileTarget(toPath, true);
            }

            if (project.IsLibraryAsset(fromPath))
            {
                project.ChangeAssetPath(fromPath, toPath);
            }
        }