The PublishRelease property introduced in .NET 7 informs dotnet publish to use the Release configuration by default instead of the Debug configuration. Starting in the .NET 8 SDK, PublishRelease defaults to true for projects that target .NET 8 or later.