Closed nblumhardt closed 9 months ago
In order to fix the tests that do not pass when running on .NET 8, <SelfContained>true</SelfContained>
must be added to the TestApp.csproj
file. This is because of a breaking change that was introduced in the .NET 8 SDK: Runtime-specific apps no longer self-contained. Especially this change:
If
PublishSelfContained
isn't explicitly set tofalse
, the publish propertiesPublishSingleFile
andPublishAot
now implySelfContained
(if it's not specified) duringdotnet publish
only (that is, not fordotnet build
ordotnet restore
).
I had to read that sentence a few times to really grasp it!
Thanks for checking this one out @0xced, I'll take a look and fix it up 👍
Working my way through these in preparation for RTM in a couple of weeks.
I tried to keep this one as additive/nondestructive as possible, given all the quirks this project has to deal with across the supported TFMs :-)