From 6e8739b2918d4212f718dcbdb4e0f031a05f0ad5 Mon Sep 17 00:00:00 2001 From: Pedro Jesus Date: Fri, 15 Sep 2023 20:36:02 -0300 Subject: [PATCH] chore: reverted file to previous state --- src/Resizetizer/src/ResizeImageInfo.cs | 29 +++----------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/src/Resizetizer/src/ResizeImageInfo.cs b/src/Resizetizer/src/ResizeImageInfo.cs index 62e65d13..04d03a37 100644 --- a/src/Resizetizer/src/ResizeImageInfo.cs +++ b/src/Resizetizer/src/ResizeImageInfo.cs @@ -83,40 +83,17 @@ public static List Parse(IEnumerable? images) throw new FileNotFoundException("Unable to find background file: " + fileInfo.FullName, fileInfo.FullName); } - if (bool.TryParse(image.GetMetadata(nameof(IsAppIcon)), out var iai)) - { - info.IsAppIcon = iai; - } - info.Filename = fileInfo.FullName; info.Alias = image.GetMetadata("Link"); if (string.IsNullOrWhiteSpace(info.Alias)) { - var windowsAndAppIcon = ResizetizeImages_v0._TargetFramework == "windows" && info.IsAppIcon; - - if (!windowsAndAppIcon) - { - var projDirectory = image.GetMetadata("DefiningProjectDirectory"); + var projDirectory = image.GetMetadata("DefiningProjectDirectory"); - if (!string.IsNullOrWhiteSpace(projDirectory)) - { - info.Alias = fileInfo.FullName.Replace(projDirectory, string.Empty); - } - } - else + if (!string.IsNullOrWhiteSpace(projDirectory)) { - -#if DEBUG_RESIZETIZER - System.Diagnostics.Debugger.Launch(); -#endif - var projDirectory = image.GetMetadata("ProjectDirectory"); - - if (!string.IsNullOrWhiteSpace(projDirectory)) - { - info.Alias = fileInfo.FullName.Replace(projDirectory, string.Empty); - } + info.Alias = fileInfo.FullName.Replace(projDirectory, string.Empty); } }