public virtual void SetLibraryAsset(string path, bool isLibraryAsset) { if (isLibraryAsset) { libraryAssets.Add(GetRelativePath(path)); } else { libraryAssets.Remove(GetRelativePath(path)); } }
public virtual void SetLibraryAsset(string path, bool isLibraryAsset) { string relPath = Path.IsPathRooted(path) ? GetRelativePath(path) : path; if (isLibraryAsset) { libraryAssets.Add(relPath); } else { libraryAssets.Remove(relPath); } }