Skip to content

Commit

Permalink
Upgrading to .NET 6, adjusting change log
Browse files Browse the repository at this point in the history
  • Loading branch information
koszeggy committed Nov 17, 2022
1 parent b5bdcf1 commit 258970d
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<TargetFrameworks>net35;net40;net45;net5.0-windows</TargetFrameworks>
<TargetFrameworks>net35;net40;net45;net6.0-windows</TargetFrameworks>
<!--<TargetFrameworks>net5.0-windows</TargetFrameworks>-->
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<RootNamespace>KGySoft.Drawing.DebuggerVisualizers.GdiPlus.Test</RootNamespace>
Expand All @@ -17,9 +17,8 @@
<Nullable>enable</Nullable>

<!--Suppressions
- NETSDK1138: The target framework 'net5.0-windows' is out of support - this is not just an application but also a library with public API so targeting the lowest possible versions is intended
- WFAC010: Remove high DPI settings from app.manifest and configure via Application.SetHighDpiMode - as targeting many frameworks handling it manually everywhere is intended. Otherwise, it would cause conflicts, eg. scaling sizes multiple times, etc. -->
<NoWarn>$(NoWarn);NETSDK1138;WFAC010</NoWarn>
<NoWarn>$(NoWarn);WFAC010</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net35;net40;net45;net5.0-windows</TargetFrameworks>
<!--<TargetFrameworks>net45;net5.0-windows</TargetFrameworks>-->
<TargetFrameworks>net35;net40;net45;net6.0-windows</TargetFrameworks>
<!--<TargetFrameworks>net45;net6.0-windows</TargetFrameworks>-->
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<RootNamespace>KGySoft.Drawing.DebuggerVisualizers.GdiPlus</RootNamespace>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
Expand All @@ -13,9 +13,6 @@
<PackageLicenseFile>..\..\..\LICENSE</PackageLicenseFile>
<Authors>György Kőszeg</Authors>
<Nullable>enable</Nullable>

<!--Suppression NETSDK1138: The target framework 'net5.0-windows' is out of support - this is not an application but a library so targeting the lowest possible versions is intended -->
<NoWarn>$(NoWarn);NETSDK1138</NoWarn>
</PropertyGroup>

<!-- Common NuGet references -->
Expand All @@ -35,7 +32,7 @@
</ItemGroup>

<!-- .NET only references (note: doesn't really make sense but allows testing from KGySoft.Drawing.DebuggerVisualizers.GdiPlus.Test) -->
<ItemGroup Condition="'$(TargetFramework)'=='net5.0-windows'">
<ItemGroup Condition="'$(TargetFramework)'=='net6.0-windows'">
<Reference Include="Microsoft.VisualStudio.DebuggerVisualizers">
<HintPath>..\..\_ref\Microsoft.VisualStudio.DebuggerVisualizers.dll</HintPath>
</Reference>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net35;net40;net45</TargetFrameworks>
<TargetFrameworks>net35;net40;net45;net6.0-windows</TargetFrameworks>
<!--<TargetFrameworks>net6.0-windows</TargetFrameworks>-->
<OutputType>WinExe</OutputType>
<Nullable>enable</Nullable>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net35;net40;net45</TargetFrameworks>
<TargetFrameworks>net35;net40;net45;net6.0-windows</TargetFrameworks>
<!--<TargetFrameworks>net6.0-windows</TargetFrameworks>-->
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<RootNamespace>KGySoft.Drawing.DebuggerVisualizers.Wpf</RootNamespace>
Expand All @@ -14,9 +14,6 @@
<Authors>György Kőszeg</Authors>
<UseWPF>true</UseWPF>
<Nullable>enable</Nullable>

<!--Suppression NETSDK1138: The target framework 'net5.0-windows' is out of support - this is not an application but a library so targeting the lowest possible versions is intended -->
<NoWarn>$(NoWarn);NETSDK1138</NoWarn>
</PropertyGroup>

<!-- Common NuGet references -->
Expand All @@ -36,7 +33,7 @@
</ItemGroup>

<!-- .NET only references (note: doesn't really make sense but allows testing from KGySoft.Drawing.DebuggerVisualizers.Wpf.Test) -->
<ItemGroup Condition="'$(TargetFramework)'=='net5.0-windows'">
<ItemGroup Condition="'$(TargetFramework)'=='net6.0-windows'">
<Reference Include="Microsoft.VisualStudio.DebuggerVisualizers">
<HintPath>..\..\_ref\Microsoft.VisualStudio.DebuggerVisualizers.dll</HintPath>
</Reference>
Expand All @@ -46,7 +43,7 @@
But debugger visualizers have to be compiled as .NET Framework assemblies anyway. -->
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy bin\$(ConfigurationName)\$(TargetFramework)\$(TargetFileName) ..\..\..\KGySoft.Drawing.ImagingTools\bin\$(ConfigurationName)\$(TargetFramework)\ /Y" />
<Exec Command="xcopy bin\$(ConfigurationName)\$(TargetFramework)\KGySoft.Drawing.Wpf.dll ..\..\..\KGySoft.Drawing.ImagingTools\bin\$(ConfigurationName)\$(TargetFramework)\ /Y" />
<Exec Condition="'$(TargetFramework)'!='net6.0-windows'" Command="xcopy bin\$(ConfigurationName)\$(TargetFramework)\KGySoft.Drawing.Wpf.dll ..\..\..\KGySoft.Drawing.ImagingTools\bin\$(ConfigurationName)\$(TargetFramework)\ /Y" />
</Target>

<!-- Project references -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net35;net40;net45;net5.0-windows</TargetFrameworks>
<!--<TargetFrameworks>net45;net5.0-windows</TargetFrameworks>-->
<TargetFrameworks>net35;net40;net45;net6.0-windows</TargetFrameworks>
<!--<TargetFrameworks>net45;net6.0-windows</TargetFrameworks>-->
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<RootNamespace>KGySoft.Drawing.DebuggerVisualizers</RootNamespace>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
Expand All @@ -13,9 +13,6 @@
<PackageLicenseFile>..\..\LICENSE</PackageLicenseFile>
<Authors>György Kőszeg</Authors>
<Nullable>enable</Nullable>

<!--Suppression NETSDK1138: The target framework 'net5.0-windows' is out of support - this is not an application but a library so targeting the lowest possible versions is intended -->
<NoWarn>$(NoWarn);NETSDK1138</NoWarn>
</PropertyGroup>

<!-- Common NuGet references -->
Expand All @@ -34,7 +31,7 @@
</ItemGroup>

<!-- .NET only references (note: doesn't really make sense but allows testing from KGySoft.Drawing.DebuggerVisualizers.Test) -->
<ItemGroup Condition="'$(TargetFramework)'=='net5.0-windows'">
<ItemGroup Condition="'$(TargetFramework)'=='net6.0-windows'">
<Reference Include="Microsoft.VisualStudio.DebuggerVisualizers">
<HintPath>..\_ref\Microsoft.VisualStudio.DebuggerVisualizers.dll</HintPath>
</Reference>
Expand Down
12 changes: 3 additions & 9 deletions KGySoft.Drawing.ImagingTools/KGySoft.Drawing.ImagingTools.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<TargetFrameworks>net35;net40;net45;net5.0-windows</TargetFrameworks>
<!--<TargetFrameworks>net45;net5.0-windows</TargetFrameworks>-->
<TargetFrameworks>net35;net40;net45;net6.0-windows</TargetFrameworks>
<!--<TargetFrameworks>net45;net6.0-windows</TargetFrameworks>-->
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<RootNamespace>KGySoft.Drawing.ImagingTools</RootNamespace>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
Expand All @@ -19,9 +19,8 @@
<Nullable>enable</Nullable>

<!--Suppressions
- NETSDK1138: The target framework 'net5.0-windows' is out of support - this is not just an application but also a library with public API so targeting the lowest possible versions is intended
- WFAC010: Remove high DPI settings from app.manifest and configure via Application.SetHighDpiMode - as targeting many frameworks handling it manually everywhere is intended. Otherwise, it would cause conflicts, eg. scaling sizes multiple times, etc. -->
<NoWarn>$(NoWarn);NETSDK1138;WFAC010</NoWarn>
<NoWarn>$(NoWarn);WFAC010</NoWarn>
</PropertyGroup>

<!--Common package references-->
Expand All @@ -40,11 +39,6 @@
<Reference Include="System.Configuration" />
</ItemGroup>

<!--.NET-only references-->
<ItemGroup Condition="'$(TargetFramework)'=='net6.0-windows'">
<PackageReference Include="System.Drawing.Common" Version="7.0.0-rc.2.22472.3 " />
</ItemGroup>

<ItemGroup>
<!--Icon resources-->
<EmbeddedResource Update="Properties\Resources.resx">
Expand Down
4 changes: 2 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
! KGySoft.Drawing.DebuggerVisualizers.dll
=========================================
! The actual debugger visualizers have been extracted into a new assembly.
- Supporting CMYK images

+ API changes:
+ New KGySoft.Drawing.DebuggerVisualizers.Serialization namespace
Expand All @@ -40,10 +39,11 @@
+ New DebugCustomColor method
+ New DebugCustomPalette method

+ KGySoft.Drawing.DebuggerVisualizers.GdiPlus.dll
* KGySoft.Drawing.DebuggerVisualizers.GdiPlus.dll
=================================================
+ A new assembly. The original debugger visualizers of KGySoft.Drawing.DebuggerVisualizers have been
extracted into this assembly to support GDI+ (System.Drawing) types.
- Supporting CMYK images

+ KGySoft.Drawing.DebuggerVisualizers.Wpf.dll
=============================================
Expand Down

0 comments on commit 258970d

Please sign in to comment.