The version in PPA [0] with a patch [1] included to fix the error seems to work as expected:
```
$ dotnet publish -r linux-x64
MSBuild version 17.8.0+6cdef4241 for .NET
Determining projects to restore...
Restored /root/PackageTest/PackageTest.csproj (in 3.16 sec).
/usr/lib/dotnet/sdk/8.0.100-rc.2.23502.1/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/PackageTest/PackageTest.csproj]
PackageTest -> /root/PackageTest/bin/Release/net8.0/linux-x64/PackageTest.dll
PackageTest -> /root/PackageTest/bin/Release/net8.0/linux-x64/publish/
```
The version in PPA [0] with a patch [1] included to fix the error seems to work as expected:
``` st/PackageTest. csproj (in 3.16 sec). dotnet/ sdk/8.0. 100-rc. 2.23502. 1/Sdks/ Microsoft. NET.Sdk/ targets/ Microsoft. NET.RuntimeIden tifierInference .targets( 311,5): message NETSDK1057: You are using a preview version of .NET. See: https:/ /aka.ms/ dotnet- support- policy [/root/ PackageTest/ PackageTest. csproj] st/bin/ Release/ net8.0/ linux-x64/ PackageTest. dll st/bin/ Release/ net8.0/ linux-x64/ publish/
$ dotnet publish -r linux-x64
MSBuild version 17.8.0+6cdef4241 for .NET
Determining projects to restore...
Restored /root/PackageTe
/usr/lib/
PackageTest -> /root/PackageTe
PackageTest -> /root/PackageTe
```
[0] https:/ /launchpad. net/~mateus- morais/ +archive/ ubuntu/ dotnet8- rc2-runtime- version- fix /github. com/dotnet/ source- build/issues/ 3673#issuecomme nt-1779566707
[1] https:/