示例#1
0
 public virtual void SetLibraryAsset(string path, bool isLibraryAsset)
 {
     if (isLibraryAsset)
     {
         libraryAssets.Add(GetRelativePath(path));
     }
     else
     {
         libraryAssets.Remove(GetRelativePath(path));
     }
 }
示例#2
0
        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);
            }
        }