From bd3fed2d4d8daeb974765cd64b6bfacf99e2d723 Mon Sep 17 00:00:00 2001 From: samypr100 <3933065+samypr100@users.noreply.github.com> Date: Fri, 4 Nov 2022 21:55:34 +0000 Subject: [PATCH] Prepping for 1.1.5 Release Updating SourceLink Updating License Mapping Adding .net 481 support and .net 6.0 support Added deterministic build flag support with GH actions Editor Config Support --- .editorconfig | 27 ++++ CHANGELOG.md | 118 ++++++++++++------ README.md | 70 +++++------ source/WindowsAPICodePack/Core/Core.csproj | 29 +++-- .../ExtendedLinguisticServices.csproj | 103 ++++++++------- .../WindowsAPICodePack/Sensors/Sensors.csproj | 29 +++-- source/WindowsAPICodePack/Shell/Shell.csproj | 27 ++-- .../ShellExtensions/ShellExtensions.csproj | 29 +++-- 8 files changed, 271 insertions(+), 161 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..c71605de --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + +[*] + +# Sane defaults +end_of_line = crlf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +# XML project files +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] +indent_size = 2 + +# XML config files +[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] +indent_size = 2 + +# Code files +[*.{cs,csx}] +tab_width = 4 +indent_size = 4 +indent_style = space diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ce6cdc5..61b4c5fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,40 +1,78 @@ -### 2018-06-19 -**Core 1.1.3.3** -**Shell 1.1.3.3** -**ShellExtensions 1.1.3.3** -**Sensors 1.1.3.3** -**ExtendedLinguisticServices 1.1.3.3** -- Retarget to .NET 4.5.2 instead of .NET 4.6.2. This is the oldest version of the .NET framework that is still under support. - - -### 2018-02-28 -**Core 1.1.3.2** -**Shell 1.1.3.2** -**ShellExtensions 1.1.3.2** -**Sensors 1.1.3.2** -**ExtendedLinguisticServices 1.1.3.2** -- Fix dependencies between the packages - -### 2018-02-27 -**Core 1.1.3.1** -**Shell 1.1.3** -**ShellExtensions 1.1.3** -**Sensors 1.1.3** -**ExtendedLinguisticServices 1.1.3** -- Fix Enabled property not working properly #1 -- Fixed marshaling errors and memory leaks with TaskDialogButton's #2 -- Fix a bug where a ShellLink was not properly created #3 -- Remove the border on the ExplorerBrowser control #4 -- Fix the implementation of the property CheckSelect #5 -- Fixed comctl32.dll version 6 problem. Added default button selector to TaskDialog, Signed the assemblies #6 -- Fix Command link description display bug. #7 -- Fixed bug in normalizing value of itemType variable. #8 -- Fix NullReferenceException when setting label.Text while the dialog is open #9 -- Fixed the pointer size to ensure proper memory access #10 -- Fixes for NativeTaskDialog aybe#29 -- Revert "Return correct value when closing". See aybe#41 for details #12 - -### 02/01/2016 -**Core 1.1.2** -- TaskDialog icons were visible only when defined in Opened event -- TaskDialog custom/hyperlink button not closing dialog from within Click event +### 2022-11-04 + +**Core 1.1.5** +**Shell 1.1.5** +**ShellExtensions 1.1.5** +**Sensors 1.1.5** +**ExtendedLinguisticServices 1.1.5** + +- Switch from MD-5 to FNV-1a for hashcode implementation +- Fix pointer offset and struct size +- Basic Editor Config Support +- Target .NET 452, 462, 472, 480, 481 and .NET Core 3.1, 5.0, 6.0 + +### 2020-03-04 + +**Core 1.1.4** +**Shell 1.1.4** +**ShellExtensions 1.1.4** +**Sensors 1.1.4** +**ExtendedLinguisticServices 1.1.4** + +- Address GetTimestamp failure +- Fixing issue which was preventing application to shut down +- Enable SourceLink to allow easier debugging +- Upgraded SLN to VS15 Format +- Fix Enabled property when using the CustomFileDialog +- Fix multi-dot extensions and save dialog file names +- Fix exception with DefaultFileName +- Target .NET 452, 462, 472, 480 and .NET Core 3, 3.1 + +### 2018-06-19 + +**Core 1.1.3.3** +**Shell 1.1.3.3** +**ShellExtensions 1.1.3.3** +**Sensors 1.1.3.3** +**ExtendedLinguisticServices 1.1.3.3** + +- Retarget to .NET 4.5.2 instead of .NET 4.6.2. This is the oldest version of the .NET framework that is still under + support. + +### 2018-02-28 + +**Core 1.1.3.2** +**Shell 1.1.3.2** +**ShellExtensions 1.1.3.2** +**Sensors 1.1.3.2** +**ExtendedLinguisticServices 1.1.3.2** + +- Fix dependencies between the packages + +### 2018-02-27 + +**Core 1.1.3.1** +**Shell 1.1.3** +**ShellExtensions 1.1.3** +**Sensors 1.1.3** +**ExtendedLinguisticServices 1.1.3** + +- Fix Enabled property not working properly #1 +- Fixed marshaling errors and memory leaks with TaskDialogButton's #2 +- Fix a bug where a ShellLink was not properly created #3 +- Remove the border on the ExplorerBrowser control #4 +- Fix the implementation of the property CheckSelect #5 +- Fixed comctl32.dll version 6 problem. Added default button selector to TaskDialog, Signed the assemblies #6 +- Fix Command link description display bug. #7 +- Fixed bug in normalizing value of itemType variable. #8 +- Fix NullReferenceException when setting label.Text while the dialog is open #9 +- Fixed the pointer size to ensure proper memory access #10 +- Fixes for NativeTaskDialog aybe#29 +- Revert "Return correct value when closing". See aybe#41 for details #12 + +### 2016-02-01 + +**Core 1.1.2** + +- TaskDialog icons were visible only when defined in Opened event +- TaskDialog custom/hyperlink button not closing dialog from within Click event diff --git a/README.md b/README.md index 79ddabf2..5d49cdac 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,35 @@ -# Windows-API-Code-Pack-1.1.4 - -## README - -This is a fork of the Microsoft © Windows API Code Pack, based on a repository created by [Aybe](https://github.com/aybe/Windows-API-Code-Pack-1.1). Due to the lack of updates to the original package, this fork was created to include all open pull requests on the original repository, apply fixes and add support for all current .NET Framework and .NET Core versions. - -Now with added .Net5.0 support ! (windows only) - -## NuGet packages (recommended) - -https://www.nuget.org/packages/Microsoft-WindowsAPICodePack-Core/ - -https://www.nuget.org/packages/Microsoft-WindowsAPICodePack-Shell/ - -https://www.nuget.org/packages/Microsoft-WindowsAPICodePack-ShellExtensions/ - -https://www.nuget.org/packages/Microsoft-WindowsAPICodePack-ExtendedLinguisticServices/ - -https://www.nuget.org/packages/Microsoft-WindowsAPICodePack-Sensors/ - -## Licence - -See [LICENSE](LICENSE) for the original licence (retrieved from [WebArchive](http://web.archive.org/web/20130717101016/http://archive.msdn.microsoft.com/WindowsAPICodePack/Project/License.aspx)). The library is not developed anymore by Microsoft and seems to have been left as 'free to use'. A clarification or update about the licence terms from Microsoft is welcome, however. - -## Release notes - -See [CHANGELOG](CHANGELOG.md) for latest changes. - -## Issues - -When you submit a issue: - - - describe the observed behavior/result - - describe the expected behavior/result - - provide example code showing the issue where appropriate \ No newline at end of file +# Windows-API-Code-Pack-1.1.5 + +## README + +This is a fork of the Microsoft © Windows API Code Pack, based on a repository created by [contre](https://github.com/contre/Windows-API-Code-Pack-1.1). Due to the lack of updates to the original package, this fork was created to add support for all current .NET Framework and .NET Core versions. + +Now with added .Net6.0 support ! (windows only) + +## NuGet packages (recommended) + +https://www.nuget.org/packages/Microsoft-WindowsAPICodePack-Core-6.0/ + +https://www.nuget.org/packages/Microsoft-WindowsAPICodePack-Shell-6.0/ + +https://www.nuget.org/packages/Microsoft-WindowsAPICodePack-ShellExtensions-6.0/ + +https://www.nuget.org/packages/Microsoft-WindowsAPICodePack-ExtendedLinguisticServices-6.0/ + +https://www.nuget.org/packages/Microsoft-WindowsAPICodePack-Sensors-6.0/ + +## Licence + +See [LICENSE](LICENSE) for the original licence (retrieved from [WebArchive](http://web.archive.org/web/20130717101016/http://archive.msdn.microsoft.com/WindowsAPICodePack/Project/License.aspx)). The library is not developed anymore by Microsoft and seems to have been left as 'free to use'. A clarification or update about the licence terms from Microsoft is welcome, however. + +## Release notes + +See [CHANGELOG](CHANGELOG.md) for latest changes. + +## Issues + +When you submit a issue: + + - describe the observed behavior/result + - describe the expected behavior/result + - provide example code showing the issue where appropriate diff --git a/source/WindowsAPICodePack/Core/Core.csproj b/source/WindowsAPICodePack/Core/Core.csproj index 27c8fb22..2b2c20b7 100644 --- a/source/WindowsAPICodePack/Core/Core.csproj +++ b/source/WindowsAPICodePack/Core/Core.csproj @@ -2,23 +2,26 @@ Microsoft.WindowsAPICodePack - Microsoft-WindowsAPICodePack-Core + Microsoft-WindowsAPICodePack-Core-6.0 1.1.5 $(AssemblyName) - rpastric;contre;dahall + rpastric;contre;dahall;samypr100 Microsoft Microsoft Windows API Code Pack for .NET Framework - https://github.com/contre/Windows-API-Code-Pack-1.1/LICENSE - https://github.com/contre/Windows-API-Code-Pack-1.1 + LICENSE + https://github.com/samypr100/Windows-API-Code-Pack-1.1 false - The Core code for the WindowsAPICodePack. This is an updated version containing all available bug fixes for this code as of 2020-01-04. - See CHANGELOG.md in project site. https://github.com/contre/Windows-API-Code-Pack-1.1/blob/master/CHANGELOG.md - Copyright © 2020 + The Core code for the WindowsAPICodePack. This is an updated version containing all available bug fixes for this code as of 2021-01-05. + See CHANGELOG.md in project site. https://github.com/samypr100/Windows-API-Code-Pack-1.1/blob/main/CHANGELOG.md + https://github.com/samypr100/Windows-API-Code-Pack-1.1 + .git + Copyright © 2022 en-US WindowsAPICodePack + true true snupkg - net452;net462;net472;net48;netcoreapp3.1;net5.0-windows + net452;net462;net472;net48;net481;netcoreapp3.1;net5.0-windows;net6.0-windows true latest Microsoft.WindowsAPICodePack @@ -27,9 +30,15 @@ ProjectSignKey.snk true + + + true + + true + @@ -39,7 +48,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -58,4 +67,4 @@ LocalizedMessages.Designer.cs - \ No newline at end of file + diff --git a/source/WindowsAPICodePack/ExtendedLinguisticServices/ExtendedLinguisticServices.csproj b/source/WindowsAPICodePack/ExtendedLinguisticServices/ExtendedLinguisticServices.csproj index 25c68cd2..27a71b4f 100644 --- a/source/WindowsAPICodePack/ExtendedLinguisticServices/ExtendedLinguisticServices.csproj +++ b/source/WindowsAPICodePack/ExtendedLinguisticServices/ExtendedLinguisticServices.csproj @@ -1,63 +1,72 @@  - Microsoft.WindowsAPICodePack.ExtendedLinguisticServices - Microsoft-WindowsAPICodePack-ExtendedLinguisticServices - 1.1.5 - $(AssemblyName) - rpastric;contre;dahall - Microsoft - Microsoft Windows API Code Pack for .NET Framework - https://github.com/contre/Windows-API-Code-Pack-1.1/LICENSE - https://github.com/contre/Windows-API-Code-Pack-1.1 - false - The Extended Linguistic Services code for the WindowsAPICodePack. This is an updated version containing all available bug fixes for this code as of 2020-01-04. - See CHANGELOG.md in project site. https://github.com/contre/Windows-API-Code-Pack-1.1/blob/master/CHANGELOG.md - Copyright © 2020 - en-US - WindowsAPICodePack - true - snupkg - net452;net462;net472;net48;netcoreapp3.1;net5.0-windows - true - latest - Microsoft.WindowsAPICodePack.ExtendedLinguisticServices - ..\bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml - true - ProjectSignKey.snk + Microsoft.WindowsAPICodePack.ExtendedLinguisticServices + Microsoft-WindowsAPICodePack-ExtendedLinguisticServices-6.0 + 1.1.5 + $(AssemblyName) + rpastric;contre;dahall;samypr100 + Microsoft + Microsoft Windows API Code Pack for .NET Framework + LICENSE + https://github.com/samypr100/Windows-API-Code-Pack-1.1 + false + The Extended Linguistic Services code for the WindowsAPICodePack. This is an updated version containing all available bug fixes for this code as of 2021-01-05. + See CHANGELOG.md in project site. https://github.com/samypr100/Windows-API-Code-Pack-1.1/blob/main/CHANGELOG.md + https://github.com/samypr100/Windows-API-Code-Pack-1.1 + .git + Copyright © 2022 + en-US + WindowsAPICodePack + true + true + snupkg + net452;net462;net472;net48;net481;netcoreapp3.1;net5.0-windows;net6.0-windows + true + latest + Microsoft.WindowsAPICodePack.ExtendedLinguisticServices + ..\bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml + true + ProjectSignKey.snk + + + - true + true + + + true - - - - - - + + + + + + - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + - + - - True - True - LocalizedMessages.resx - + + True + True + LocalizedMessages.resx + - - Microsoft.WindowsAPICodePack.Resources - ResXFileCodeGenerator - LocalizedMessages.Designer.cs - + + Microsoft.WindowsAPICodePack.Resources + ResXFileCodeGenerator + LocalizedMessages.Designer.cs + - \ No newline at end of file + diff --git a/source/WindowsAPICodePack/Sensors/Sensors.csproj b/source/WindowsAPICodePack/Sensors/Sensors.csproj index 99ce3fb0..f909732c 100644 --- a/source/WindowsAPICodePack/Sensors/Sensors.csproj +++ b/source/WindowsAPICodePack/Sensors/Sensors.csproj @@ -2,23 +2,26 @@ Microsoft.WindowsAPICodePack.Sensors - Microsoft-WindowsAPICodePack-Sensors + Microsoft-WindowsAPICodePack-Sensors-6.0 1.1.5 $(AssemblyName) - rpastric;contre;dahall + rpastric;contre;dahall;samypr100 Microsoft Microsoft Windows API Code Pack for .NET Framework - https://github.com/contre/Windows-API-Code-Pack-1.1/LICENSE - https://github.com/contre/Windows-API-Code-Pack-1.1 + LICENSE + https://github.com/samypr100/Windows-API-Code-Pack-1.1 false - The Sensors code for the WindowsAPICodePack. This is an updated version containing all available bug fixes for this code as of 2020-01-04. - See CHANGELOG.md in project site. https://github.com/contre/Windows-API-Code-Pack-1.1/blob/master/CHANGELOG.md - Copyright © 2020 + The Sensors code for the WindowsAPICodePack. This is an updated version containing all available bug fixes for this code as of 2021-01-05. + See CHANGELOG.md in project site. https://github.com/samypr100/Windows-API-Code-Pack-1.1/blob/main/CHANGELOG.md + https://github.com/samypr100/Windows-API-Code-Pack-1.1 + .git + Copyright © 2022 en-US WindowsAPICodePack + true true snupkg - net452;net462;net472;net48;netcoreapp3.1;net5.0-windows + net452;net462;net472;net48;net481;netcoreapp3.1;net5.0-windows;net6.0-windows true latest Microsoft.WindowsAPICodePack.Sensors @@ -26,15 +29,21 @@ true ProjectSignKey.snk + + + true + + true + - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -56,4 +65,4 @@ LocalizedMessages.Designer.cs - \ No newline at end of file + diff --git a/source/WindowsAPICodePack/Shell/Shell.csproj b/source/WindowsAPICodePack/Shell/Shell.csproj index 38feff99..2a9594e5 100644 --- a/source/WindowsAPICodePack/Shell/Shell.csproj +++ b/source/WindowsAPICodePack/Shell/Shell.csproj @@ -2,23 +2,26 @@ Microsoft.WindowsAPICodePack.Shell - Microsoft-WindowsAPICodePack-Shell + Microsoft-WindowsAPICodePack-Shell-6.0 1.1.5 $(AssemblyName) - rpastric;contre;dahall + rpastric;contre;dahall;samypr100 Microsoft Microsoft Windows API Code Pack for .NET Framework - https://github.com/contre/Windows-API-Code-Pack-1.1/LICENSE - https://github.com/contre/Windows-API-Code-Pack-1.1 + LICENSE + https://github.com/samypr100/Windows-API-Code-Pack-1.1 false - The Shell code for the WindowsAPICodePack. This is an updated version containing all available bug fixes for this code as of 2020-01-04. - See CHANGELOG.md in project site. https://github.com/contre/Windows-API-Code-Pack-1.1/blob/master/CHANGELOG.md - Copyright © 2020 + The Shell code for the WindowsAPICodePack. This is an updated version containing all available bug fixes for this code as of 2021-01-05. + See CHANGELOG.md in project site. https://github.com/samypr100/Windows-API-Code-Pack-1.1/blob/main/CHANGELOG.md + https://github.com/samypr100/Windows-API-Code-Pack-1.1 + .git + Copyright © 2022 en-US WindowsAPICodePack + true true snupkg - net452;net462;net472;net48;netcoreapp3.1;net5.0-windows + net452;net462;net472;net48;net481;netcoreapp3.1;net5.0-windows;net6.0-windows true true latest @@ -27,9 +30,15 @@ true ProjectSignKey.snk + + + true + + true + @@ -45,7 +54,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/source/WindowsAPICodePack/ShellExtensions/ShellExtensions.csproj b/source/WindowsAPICodePack/ShellExtensions/ShellExtensions.csproj index bcd3aacb..b0f804aa 100644 --- a/source/WindowsAPICodePack/ShellExtensions/ShellExtensions.csproj +++ b/source/WindowsAPICodePack/ShellExtensions/ShellExtensions.csproj @@ -2,23 +2,26 @@ Microsoft.WindowsAPICodePack.ShellExtensions - Microsoft-WindowsAPICodePack-ShellExtensions + Microsoft-WindowsAPICodePack-ShellExtensions-6.0 1.1.5 $(AssemblyName) - rpastric;contre;dahall + rpastric;contre;dahall;samypr100 Microsoft Microsoft Windows API Code Pack for .NET Framework - https://github.com/contre/Windows-API-Code-Pack-1.1/LICENSE - https://github.com/contre/Windows-API-Code-Pack-1.1 + LICENSE + https://github.com/samypr100/Windows-API-Code-Pack-1.1 false - The ShellExtensions code for the WindowsAPICodePack. This is an updated version containing all available bug fixes for this code as of 2020-01-04. - See CHANGELOG.md in project site. https://github.com/contre/Windows-API-Code-Pack-1.1/blob/master/CHANGELOG.md - Copyright © 2020 + The ShellExtensions code for the WindowsAPICodePack. This is an updated version containing all available bug fixes for this code as of 2021-01-05. + See CHANGELOG.md in project site. https://github.com/samypr100/Windows-API-Code-Pack-1.1/blob/main/CHANGELOG.md + https://github.com/samypr100/Windows-API-Code-Pack-1.1 + .git + Copyright © 2022 en-US WindowsAPICodePack + true true snupkg - net452;net462;net472;net48;netcoreapp3.1;net5.0-windows + net452;net462;net472;net48;net481;netcoreapp3.1;net5.0-windows;net6.0-windows true true latest @@ -27,9 +30,15 @@ true ProjectSignKey.snk + + + true + + true + @@ -46,7 +55,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -69,4 +78,4 @@ LocalizedMessages.Designer.cs - \ No newline at end of file +