Description
.NET version
target: net8.0-windows
installed dotnet sdk: 9.0.100, 8.0.404 & 8.0.206 (for whatever reason I have multiple)
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
not tested
Issue description
Recently I had warnings about vulnerable package references, so I upgraded all possible Microsoft packages and tested my application thoroughly, when I stumbled over a very strange bug:
Running in a debug session, my application opens one of our forms and as soon as I load data the complete Debug session kills itself without any notice. No break on any exception, no log output, the process is just gone, and VS sits there as if no debug session was started.
Steps to reproduce
After a git bisect
I determined the root cause: when changing a csproj
file from
<ItemGroup>
[..]
<PackageReference Include="System.Drawing.Common" Version="8.0.8" />
[..]
</ItemGroup>
to
<ItemGroup>
[..]
<PackageReference Include="System.Drawing.Common" Version="9.0.0" />
[..]
</ItemGroup>
the bug appears. In the same commit I also upgraded many other packages from 8.0.* to 9.0.0, like System.Configuration.ConfigurationManager
and System.Management
, but only with System.Drawing.Common-9.0.0
this bug happens.
We are using System.Drawing.Common
mainly for Image
manipulation (Resize, etc.) and Bitmap
creation, the UI itself is 3rd-party (managed through COM interops) not Windows.Forms
.
I am a bit stuck in finding more information on this, or better describing this issue, I am posting here because the NuGet-package links here. Does anyone have an idea on how to find out more?
My workaround is of course, to not upgrade this package, but this can't be the solution in the long-run...