Skip to content

Disable dotnet cli AoT when running .net integration tests - #7602

Merged
zivkan merged 1 commit into
devfrom
dev-zivkan-dotnet.integration.tests-no-aot
Jul 29, 2026
Merged

zivkan merged 1 commit into
devfrom
dev-zivkan-dotnet.integration.tests-no-aot

Conversation

@zivkan

@zivkan zivkan commented Jul 28, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: infrastructure

Description

The SDK is increasingly using AoT in the SDK. This PR appears to make dotnet restore run with AoT:

The way the NuGet.Client repo Dotnet.Integration.Tests works is to downloads a .NET SDK with dotnet-install.[ps1|sh], makes a copy of it in a test directory, then replaces all the NuGet.*.dll files with the local build. But if the SDK runs AoT, it's not going to run those NuGet assemblies. So, we have to instruct the SDK not to use AoT for our tests to run the correct binaries.

Here are the docs saying that this is the environment variable to set: https://github.com/dotnet/sdk/blob/main/src/Cli/dotnet-aot/DESIGN.md#opting-out-dotnet_cli_enableaot

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A

@zivkan
zivkan requested a review from a team as a code owner July 28, 2026 21:22
@zivkan
zivkan requested review from donnie-msft and martinrrm July 28, 2026 21:22
@zivkan
zivkan merged commit ef30865 into dev Jul 29, 2026
17 of 18 checks passed
@zivkan
zivkan deleted the dev-zivkan-dotnet.integration.tests-no-aot branch July 29, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants