mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-14 21:32:52 +00:00
.NET 7 and .NET 8 support #139
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @atauenis on GitHub (Nov 24, 2023).
Hi, all. Found that
dotnet-packagingutilities v0.1.220 does not working with .NET 7 and 8 SDKs.First, they're requiring .NET 6.0 SDK to at least run, otherwise the message appear:
With .NET SDK 6 installed, all net6.0-targeted apps are building and packaging well.
Second, if change
TargetFrameworktonet8.0ornet7.0, the build breaks:Strange that MSBuild still looks for .NET SDK 6 by
dotnet deb, but that's is. Plaindotnet publishis working correctly.If try to set the framework version by command line (
dotnet deb -c Release -f net8.0) other strange error appear:If set multiple dotnet versions,
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFramework>all three are building, but only a build for .NET 6 gets packed to deb/rpm/zip, other two are ignored by dotnet-packaging.Hope, the maintainer of the project will remember about it, and add support for newer .NET versions. :)
Best regards.
@atauenis commented on GitHub (Nov 28, 2023):
Fixed the MSB4057 error by removing Directory.Build.Props file in my project (where
<PackageReference Include="Packaging.Targets">was placed by NuGet), and keeping correct reference to latest NuGet package version in main csproj file (just adding the reference was not enough, seems, csproj conflicted with props file):Now packages are correctly building by
dotnet publish -c Release -r linux-x64 -t:CreateDeb,CreateRpm,dotnet publish -c Release -r win-x86 -t:CreateZipcommands instead ofdotnet deb,dotnet zip, etc. But the task successful. This is the workaround how to use dotnet-packaging in .NET 8 apps.@lancewynn commented on GitHub (Dec 27, 2023):
I am attempting to do the same, however I need to use the --self-contained true switch to be able to include the Dotnet8 runtimes. When doing this, the net6 runtime is included in the output. Has anyone found any work around for this scenario?
@atauenis commented on GitHub (Dec 27, 2023):
Very strange, as for my project, it's working fine. Inspect
webone.csprojandbuild-armv6.shfiles. May be some ideas will became.Also I've tried to build it using default
build.shwith set<TargetFramework>net8.0</TargetFramework>in csproj, all binary files got produced with correct .NET 8 setup.@Mysame commented on GitHub (Apr 8, 2024):
Using this I can create a .deb file on net8 , however, it won't install on Debian 12 because it will have a dependency on libicu <70 & openssl <1.1
This does not correspond with what should be included in dotnet 8 (openssl 3 & libicu 73)
https://learn.microsoft.com/en-us/dotnet/core/compatibility/containers/8.0/debian-version
So the tool requires an update, I'm guessing.
@flozano commented on GitHub (Apr 21, 2024):
Also affected by this. It'd be great to be able to build RPMs with dotnet 8.0
@CorruptComputer commented on GitHub (Dec 20, 2024):
This was fixed by #246 already