Beispiel #1
0
 public DiagnosticItem(AssetsFileTarget target, AssetsFileTargetLibrary library, AssetsFileLogMessage log)
     : base(log.Message)
 {
     Target  = target;
     Library = library;
     Log     = log;
 }
 public PackageBuildFileGroupItem(AssetsFileTarget target, AssetsFileTargetLibrary library, PackageBuildFileGroupType groupType)
     : base(GetGroupLabel(groupType))
 {
     Target    = target;
     Library   = library;
     GroupType = groupType;
 }
 public PackageAssemblyItem(AssetsFileTarget target, AssetsFileTargetLibrary library, string path, PackageAssemblyGroupType groupType)
     : base(System.IO.Path.GetFileName(path))
 {
     Target    = target;
     Library   = library;
     Path      = path;
     GroupType = groupType;
 }
Beispiel #4
0
 public PackageContentFileItem(AssetsFileTarget target, AssetsFileTargetLibrary library, AssetsFileTargetLibraryContentFile contentFile, IFileIconProvider fileIconProvider)
     : base(GetProcessedContentFilePath(contentFile.Path))
 {
     Target            = target;
     Library           = library;
     ContentFile       = contentFile;
     _fileIconProvider = fileIconProvider;
 }
Beispiel #5
0
 public PackageBuildFileItem(AssetsFileTarget target, AssetsFileTargetLibrary library, string path, PackageBuildFileGroupType groupType, FileOpener fileOpener)
     : base(System.IO.Path.GetFileName(path))
 {
     Target      = target;
     Library     = library;
     Path        = path;
     GroupType   = groupType;
     _fileOpener = fileOpener;
 }
        internal bool TryUpdateState(AssetsFileTarget target, AssetsFileTargetLibrary library)
        {
            if (ReferenceEquals(Target, target) && ReferenceEquals(Library, library))
            {
                return(false);
            }

            Target  = target;
            Library = library;
            return(true);
        }
 protected override bool TryUpdateItem(ProjectReferenceItem item, AssetsFileTarget targetData, AssetsFileTargetLibrary library)
 {
     return(item.TryUpdateState(targetData, library));
 }
 protected override ProjectReferenceItem CreateItem(AssetsFileTarget targetData, AssetsFileTargetLibrary library)
 {
     return(new ProjectReferenceItem(targetData, library));
 }
 protected override bool TryGetLibrary(AssetsFileTarget target, string identity, [NotNullWhen(returnValue: true)] out AssetsFileTargetLibrary?library)
 {
     return(target.TryGetProject(identity, out library));
 }
 public ProjectReferenceItem(AssetsFileTarget target, AssetsFileTargetLibrary library)
     : base(library.Name)
 {
     Target  = target;
     Library = library;
 }
 public PackageContentFileGroupItem(AssetsFileTarget target, AssetsFileTargetLibrary library)
     : base(VsResources.PackageContentFilesGroupName)
 {
     Target  = target;
     Library = library;
 }
Beispiel #12
0
 protected abstract bool TryUpdateItem(TItem item, AssetsFileTarget targetData, AssetsFileTargetLibrary library);
Beispiel #13
0
 protected abstract TItem CreateItem(AssetsFileTarget targetData, AssetsFileTargetLibrary library);
Beispiel #14
0
 protected abstract bool TryGetLibrary(AssetsFileTarget target, TIdentity identity, [NotNullWhen(returnValue: true)] out AssetsFileTargetLibrary?library);
Beispiel #15
0
 public PackageReferenceItem(AssetsFileTarget target, AssetsFileTargetLibrary library)
     : base(GetCaption(library))
 {
     Library = library;
     Target  = target;
 }