-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
Description
Building a simple Hello World sample works for the linux-bionic-x64 and linux-bionic-arm64 rids, but publishing AOT fails for linux-bionic-arm64, but works for linux-bionic-x64. The following error is thrown immediately when attempting the build,
/home/emmaus/.nuget/packages/microsoft.dotnet.ilcompiler/8.0.0-preview.6.23307.4/build/Microsoft.NETCore.Native.Publish.targets(75,5): error : The PrivateSdkAssemblies ItemGroup is required for _ComputeAssembliesToCompileToNative [/home/emmaus/test/test.csproj]
Reproduction Steps
A simple project with the required nuget packages already referenced here, https://github.com/emmauss/test-aot.
Restore and build it with
dotnet publish -r linux-bionic-arm64 -c Debug -p:SysRoot=/.tools/android-rootfs/android-ndk-r21/sysroot. The error is immediately thrown.
Expected behavior
The project quickly builds and a compatible executable is generated.
Actual behavior
The following error is displayed,
/home/emmaus/.nuget/packages/microsoft.dotnet.ilcompiler/8.0.0-preview.6.23307.4/build/Microsoft.NETCore.Native.Publish.targets(75,5): error : The PrivateSdkAssemblies ItemGroup is required for _ComputeAssembliesToCompileToNative [/home/emmaus/test/test.csproj]
Regression?
No response
Known Workarounds
No response
Configuration
OS: Fedora 38 on WSL2 running on Windows 11 x64 host
.Net Version: 8.0.0-preview.6.23307.4 daily build
Other information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status