This is a minimal demo for dotnet/runtime#109044 (comment)
- The
main
branch shows the runtime crashes when referencing the Microsoft.Extensions.Logging.Abstractions.8.0.2.nupkg - The
works
branch shows that it runs without any problem if I use the Microsoft.Extensions.Logging.Abstractions.8.0.0.nupkg
- git clone this repo
- I lock my .NET SDK to
8.0.102
inglobal.json
. It should be fine to roll forward to new versions, but I didn't test that. - I use
paket
to lock the package version in.config/dotnet-tools.json
. Rundotnet tool restore
to make it available.
-
git checkout main
-
if there's a
paket-files/
folder, remove it. -
dotnet paket restore
# regenerate the paket-files/ -
cd MainApp
-
dotnet build
# it should compile -
dotnet run
# it crashes
-
git checkout works
-
if there's a
paket-files/
folder, remove it. -
dotnet paket restore
# regenerate the paket-files/ -
cd MainApp
-
dotnet build
# it should compile -
dotnet run
# it works