コード例 #1
0
 public DiagnosticItem(AssetsFileTarget target, AssetsFileTargetLibrary library, AssetsFileLogMessage log)
     : base(log.Message)
 {
     Target  = target;
     Library = library;
     Log     = log;
 }
コード例 #2
0
 public PackageBuildFileGroupItem(AssetsFileTarget target, AssetsFileTargetLibrary library, PackageBuildFileGroupType groupType)
     : base(GetGroupLabel(groupType))
 {
     Target    = target;
     Library   = library;
     GroupType = groupType;
 }
コード例 #3
0
 public PackageAssemblyItem(AssetsFileTarget target, AssetsFileTargetLibrary library, string path, PackageAssemblyGroupType groupType)
     : base(System.IO.Path.GetFileName(path))
 {
     Target    = target;
     Library   = library;
     Path      = path;
     GroupType = groupType;
 }
コード例 #4
0
 public PackageContentFileItem(AssetsFileTarget target, AssetsFileTargetLibrary library, AssetsFileTargetLibraryContentFile contentFile, IFileIconProvider fileIconProvider)
     : base(GetProcessedContentFilePath(contentFile.Path))
 {
     Target            = target;
     Library           = library;
     ContentFile       = contentFile;
     _fileIconProvider = fileIconProvider;
 }
コード例 #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;
 }
コード例 #6
0
        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));
 }
コード例 #10
0
 public ProjectReferenceItem(AssetsFileTarget target, AssetsFileTargetLibrary library)
     : base(library.Name)
 {
     Target  = target;
     Library = library;
 }
コード例 #11
0
 public PackageContentFileGroupItem(AssetsFileTarget target, AssetsFileTargetLibrary library)
     : base(VsResources.PackageContentFilesGroupName)
 {
     Target  = target;
     Library = library;
 }
コード例 #12
0
 protected abstract bool TryUpdateItem(TItem item, AssetsFileTarget targetData, AssetsFileTargetLibrary library);
コード例 #13
0
 protected abstract TItem CreateItem(AssetsFileTarget targetData, AssetsFileTargetLibrary library);
コード例 #14
0
 protected abstract bool TryGetLibrary(AssetsFileTarget target, TIdentity identity, [NotNullWhen(returnValue: true)] out AssetsFileTargetLibrary?library);
コード例 #15
0
 public PackageReferenceItem(AssetsFileTarget target, AssetsFileTargetLibrary library)
     : base(GetCaption(library))
 {
     Library = library;
     Target  = target;
 }