예제 #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);
            }
        }