From 6f735ad57f6af351a2f83a195dc4205b9d21b651 Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Thu, 12 Mar 2026 22:17:15 -0500 Subject: [PATCH 1/4] Remove file renaming before suggesting in file picker Previously, the code attempted to rename the source file to its filename without extension before suggesting it in the file picker. This step has been removed; the picker now simply suggests the source file as-is, avoiding unnecessary file operations. --- .../Simple Icon File Maker/Helpers/FilePickerHelper.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Simple Icon File Maker/Simple Icon File Maker/Helpers/FilePickerHelper.cs b/Simple Icon File Maker/Simple Icon File Maker/Helpers/FilePickerHelper.cs index bfe9695..c6bba32 100644 --- a/Simple Icon File Maker/Simple Icon File Maker/Helpers/FilePickerHelper.cs +++ b/Simple Icon File Maker/Simple Icon File Maker/Helpers/FilePickerHelper.cs @@ -17,8 +17,6 @@ public static async Task TrySetSuggestedFolderFromSourceImage(FileSavePicker sav if (File.Exists(imagePath)) { StorageFile sourceFile = await StorageFile.GetFileFromPathAsync(imagePath); - string name = Path.GetFileNameWithoutExtension(imagePath); - await sourceFile.RenameAsync(name); savePicker.SuggestedSaveFile = sourceFile; } } From 0f7284761c10cec3fc7c93b74ce5417342ae2462 Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Thu, 12 Mar 2026 22:24:47 -0500 Subject: [PATCH 2/4] Improve file picker suggested name to avoid double extensions Previously, SuggestedSaveFile used the full file name with its original extension, which could result in names like "file.png.ico" when saving as a different type. Now, SuggestedFileName is set to the source file's name without its extension, ensuring cleaner suggested names and preventing duplicate extensions in the save dialog. --- .../Simple Icon File Maker/Helpers/FilePickerHelper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Simple Icon File Maker/Simple Icon File Maker/Helpers/FilePickerHelper.cs b/Simple Icon File Maker/Simple Icon File Maker/Helpers/FilePickerHelper.cs index c6bba32..b39c1ca 100644 --- a/Simple Icon File Maker/Simple Icon File Maker/Helpers/FilePickerHelper.cs +++ b/Simple Icon File Maker/Simple Icon File Maker/Helpers/FilePickerHelper.cs @@ -18,6 +18,10 @@ public static async Task TrySetSuggestedFolderFromSourceImage(FileSavePicker sav { StorageFile sourceFile = await StorageFile.GetFileFromPathAsync(imagePath); savePicker.SuggestedSaveFile = sourceFile; + + // SuggestedSaveFile overrides SuggestedFileName, so re-set + // the name without the source extension to avoid names like "file.png.ico" + savePicker.SuggestedFileName = Path.GetFileNameWithoutExtension(imagePath); } } catch From 95f57905fd9743a4d87c201635ae260242b82463 Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Thu, 12 Mar 2026 22:27:03 -0500 Subject: [PATCH 3/4] Update Magick.NET and Hosting NuGet package versions Upgraded Magick.NET-Q16-AnyCPU to 14.10.4 and Microsoft.Extensions.Hosting to 10.0.5 to keep dependencies current and benefit from the latest fixes and improvements. --- .../Simple Icon File Maker/Simple Icon File Maker.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Simple Icon File Maker/Simple Icon File Maker/Simple Icon File Maker.csproj b/Simple Icon File Maker/Simple Icon File Maker/Simple Icon File Maker.csproj index a4559fd..76c6aa4 100644 --- a/Simple Icon File Maker/Simple Icon File Maker/Simple Icon File Maker.csproj +++ b/Simple Icon File Maker/Simple Icon File Maker/Simple Icon File Maker.csproj @@ -43,9 +43,9 @@ - + - + From 3659f5498a04ecd3ea805a1eba11f77e49bd1b98 Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Thu, 12 Mar 2026 22:34:59 -0500 Subject: [PATCH 4/4] Bump app version; disable test artifacts and symbols Incremented package version to 1.15.1.0 in Package.appxmanifest. Disabled generation of test artifacts and symbol packages in wapproj by setting GenerateTestArtifacts to false and adding AppxSymbolPackageEnabled=false. Reformatted wapproj for consistency. --- .../Package.appxmanifest | 2 +- .../Simple Icon File Maker (Package).wapproj | 263 +++++++++--------- 2 files changed, 133 insertions(+), 132 deletions(-) diff --git a/Simple Icon File Maker/Simple Icon File Maker (Package)/Package.appxmanifest b/Simple Icon File Maker/Simple Icon File Maker (Package)/Package.appxmanifest index d9637f5..c3b035f 100644 --- a/Simple Icon File Maker/Simple Icon File Maker (Package)/Package.appxmanifest +++ b/Simple Icon File Maker/Simple Icon File Maker (Package)/Package.appxmanifest @@ -10,7 +10,7 @@ + Version="1.15.1.0" /> diff --git a/Simple Icon File Maker/Simple Icon File Maker (Package)/Simple Icon File Maker (Package).wapproj b/Simple Icon File Maker/Simple Icon File Maker (Package)/Simple Icon File Maker (Package).wapproj index 20445a7..cf76f85 100644 --- a/Simple Icon File Maker/Simple Icon File Maker (Package)/Simple Icon File Maker (Package).wapproj +++ b/Simple Icon File Maker/Simple Icon File Maker (Package)/Simple Icon File Maker (Package).wapproj @@ -1,134 +1,135 @@ - - 15.0 - - - - Debug - x86 - - - Release - x86 - - - Debug - x64 - - - Release - x64 - - - Debug - arm64 - - - Release - arm64 - - - - $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\ - Simple Icon File Maker\ - - - - 7887a19f-b1cd-4106-a9aa-abaacfe770a9 - 10.0.26100.0 - 10.0.19041.0 - 10.0.19041.0 - net9.0-windows$(TargetPlatformVersion);$(AssetTargetFallback) - en-US - false - ..\Simple Icon File Maker\Simple Icon File Maker.csproj - False - False - True - x86|x64|arm64 - x86|x64|arm64 - True - 0 - SHA256 - false - false - true - - - Always - - - Always - - - Always - - - Always - - - Always - - - Always - - - - Designer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - True - Properties\PublishProfiles\win-$(Platform).pubxml - - - - - build - - - build - - - - + + 15.0 + + + + Debug + x86 + + + Release + x86 + + + Debug + x64 + + + Release + x64 + + + Debug + arm64 + + + Release + arm64 + + + + $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\ + Simple Icon File Maker\ + + + + 7887a19f-b1cd-4106-a9aa-abaacfe770a9 + 10.0.26100.0 + 10.0.19041.0 + 10.0.19041.0 + net9.0-windows$(TargetPlatformVersion);$(AssetTargetFallback) + en-US + false + ..\Simple Icon File Maker\Simple Icon File Maker.csproj + False + False + False + x86|x64|arm64 + x86|x64|arm64 + True + 0 + SHA256 + false + false + true + False + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + + Designer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + Properties\PublishProfiles\win-$(Platform).pubxml + + + + + build + + + build + + + + \ No newline at end of file