Open atauenis opened 11 months ago
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):
<ItemGroup>
<PackageReference Include="Packaging.Targets" Version="0.1.*" />
</ItemGroup>
Now packages are correctly building by dotnet publish -c Release -r linux-x64 -t:CreateDeb,CreateRpm
, dotnet publish -c Release -r win-x86 -t:CreateZip
commands instead of dotnet deb
, dotnet zip
, etc. But the task successful. This is the workaround how to use dotnet-packaging in .NET 8 apps.
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?
Very strange, as for my project, it's working fine. Inspect webone.csproj
and build-armv6.sh
files. May be some ideas will became.
Also I've tried to build it using default build.sh
with set <TargetFramework>net8.0</TargetFramework>
in csproj, all binary files got produced with correct .NET 8 setup.
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):<ItemGroup> <PackageReference Include="Packaging.Targets" Version="0.1.*" /> </ItemGroup>
Now packages are correctly building by
dotnet publish -c Release -r linux-x64 -t:CreateDeb,CreateRpm
,dotnet publish -c Release -r win-x86 -t:CreateZip
commands instead ofdotnet deb
,dotnet zip
, etc. But the task successful. This is the workaround how to use dotnet-packaging in .NET 8 apps.
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.
Also affected by this. It'd be great to be able to build RPMs with dotnet 8.0
Hi, all. Found that
dotnet-packaging
utilities 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
TargetFramework
tonet8.0
ornet7.0
, the build breaks:Strange that MSBuild still looks for .NET SDK 6 by
dotnet deb
, but that's is. Plaindotnet publish
is 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.