···2828 packages = [
2929 (with dotnetCorePackages; combinePackages [
3030 sdk_3_1
3131- sdk_3_0
3232- sdk_2_1
3131+ sdk_5_0
3332 ])
3433 ];
3534}
···64636564The `dotnetCorePackages.sdk_X_Y` is preferred over the old dotnet-sdk as both major and minor version are very important for a dotnet environment. If a given minor version isn't present (or was changed), then this will likely break your ability to build a project.
66656767-## dotnetCorePackages.sdk vs dotnetCorePackages.net vs dotnetCorePackages.netcore vs dotnetCorePackages.aspnetcore {#dotnetcorepackages.sdk-vs-dotnetcorepackages.net-vs-dotnetcorepackages.netcore-vs-dotnetcorepackages.aspnetcore}
6666+## dotnetCorePackages.sdk vs dotnetCorePackages.runtime vs dotnetCorePackages.aspnetcore {#dotnetcorepackages.sdk-vs-dotnetcorepackages.runtime-vs-dotnetcorepackages.aspnetcore}
68676969-The `dotnetCorePackages.sdk` contains both a runtime and the full sdk of a given version. The `net`, `netcore` and `aspnetcore` packages are meant to serve as minimal runtimes to deploy alongside already built applications. For runtime versions >= .NET 5 `net` is used while `netcore` is used for older .NET Core runtime version.
6868+The `dotnetCorePackages.sdk` contains both a runtime and the full sdk of a given version. The `runtime` and `aspnetcore` packages are meant to serve as minimal runtimes to deploy alongside already built applications.
70697170## Packaging a Dotnet Application {#packaging-a-dotnet-application}
7271
···3232# The dotnet SDK to use.
3333, dotnet-sdk ? dotnetCorePackages.sdk_5_0
3434# The dotnet runtime to use.
3535-, dotnet-runtime ? dotnetCorePackages.net_5_0
3535+, dotnet-runtime ? dotnetCorePackages.runtime_5_0
3636, ... } @ args:
37373838assert projectFile == null -> throw "Defining the `projectFile` attribute is required. This is usually an `.csproj`, or `.sln` file.";