diff --git a/Formula/d/dotnet.rb b/Formula/d/dotnet.rb index af793f12c546f..3a5bc5c538808 100644 --- a/Formula/d/dotnet.rb +++ b/Formula/d/dotnet.rb @@ -170,5 +170,9 @@ def caveats resource("docfx").stage do system bin/"dotnet", "restore", "src/docfx", "--disable-build-servers", "--no-cache" end + + # Confirm that building/publishing with native AOT works + system bin/"dotnet", "new", "console", "-o", "TestConsoleAOT", "--aot" + system bin/"dotnet", "publish", "TestConsoleAOT" end end