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); } }
public void ToggleAlwaysCompile(Project project, string[] paths) { foreach (string path in paths) { bool isTarget = project.IsCompileTarget(path); project.SetCompileTarget(path, !isTarget); } project.Save(); OnProjectModified(paths); }
/*public void ClearASCompletion(IMainForm mainForm) { mainForm.CallCommand("PluginCommand",COMMAND_CLEARCLASSCACHE); }*/ #endregion #region Project File Reference Updating public void RemoveAllReferences(Project project, string path) { if (project.IsLibraryAsset(path)) project.SetLibraryAsset(path,false); if (project.IsCompileTarget(path)) project.SetCompileTarget(path,false); }