From 190a850259b224a6dec6cea776b5bf2320f20165 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 26 Jan 2023 12:41:46 +0100 Subject: [PATCH] Add simple NativeAOT test case. Currently fails with: > error NETSDK1183: Unable to optimize assemblies for Ahead of time compilation: a valid runtime package was not found. Either set the PublishAot property to false, or use a supported runtime identifier when publishing. When targeting .NET 7 or higher, make sure to restore packages with the PublishAot property set to true. --- tests/dotnet/MySimpleApp/iOS/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/dotnet/MySimpleApp/iOS/Makefile b/tests/dotnet/MySimpleApp/iOS/Makefile index 110d078f4577..b5004a069f0e 100644 --- a/tests/dotnet/MySimpleApp/iOS/Makefile +++ b/tests/dotnet/MySimpleApp/iOS/Makefile @@ -1 +1,4 @@ include ../shared.mk + +nativeaot: + $(DOTNET) build /bl:$@.binlog *.csproj /p:RuntimeIdentifier=ios-arm64 /p:PublishAot=true