public PackageBuildFileGroupItem(AssetsFileTarget target, AssetsFileTargetLibrary library, PackageBuildFileGroupType groupType) : base(GetGroupLabel(groupType)) { Target = target; Library = library; GroupType = groupType; }
private static string GetGroupLabel(PackageBuildFileGroupType groupType) { return(groupType switch { PackageBuildFileGroupType.Build => VsResources.PackageBuildFileGroupName, PackageBuildFileGroupType.BuildMultiTargeting => VsResources.PackageBuildMultiTargetingFileGroupName, _ => throw new InvalidEnumArgumentException(nameof(groupType), (int)groupType, typeof(PackageBuildFileGroupType)) });
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; }