doc/articles/migrating-from-net7-to-net8.md
Migrating from .NET 7 to .NET 8 is a generally straightforward process. You may find below some specific adjustments to make to your projects and libraries when upgrading.
To upgrade to .NET 8:
net7.0 to net8.0, and net7.0-* to net8.0-*. If you are using a TFM like net7.0-ios13.6, be sure to match the shipping version of that platform or just remove the platform version (i.e. 13.6).If you are building on windows and experience the compilation error NETSDK1083 when retargeting your library from net7.0 to net8.0, add the following to the csproj:
<PropertyGroup>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
</PropertyGroup>
You may also need to add to your .Windows.csproj:
<PropertyGroup>
<SelfContained>true</SelfContained>
</PropertyGroup>
If you're using the XAML Resource Trimming feature, you'll need to upgrade or add the following package to your .Wasm.csproj:
<ItemGroup>
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="8.0.0" />
</ItemGroup>