Comment 1 for bug 2040547

Revision history for this message
Mateus Rodrigues de Morais (mateus-morais) wrote (last edit ):

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/
```

[0] https://launchpad.net/~mateus-morais/+archive/ubuntu/dotnet8-rc2-runtime-version-fix
[1] https://github.com/dotnet/source-build/issues/3673#issuecomment-1779566707