Skip to content

Disable Validate.csproj build under Mono FullAOT to fix CS0246#128481

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/ci-scan-fix-build-error-again
Draft

Disable Validate.csproj build under Mono FullAOT to fix CS0246#128481
Copilot wants to merge 2 commits into
mainfrom
copilot/ci-scan-fix-build-error-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 22, 2026

AllSubsets_Mono_MiniFullAot_RuntimeTests build leg has been broken since ~2026-05-01 with CS0246 on using InvalidCSharp; in src/tests/Loader/classloader/generics/ByRefLike/Validate.{cs,csproj}.

Root cause: InvalidCSharp.ilproj is marked MonoAotIncompatible=true, so src/tests/Directory.Build.targets sets DisableProjectBuild=true for it under minifullaot/llvmfullaot. The dependent Validate.csproj was not similarly gated, so the C# compile ran with the IL reference missing.

<PropertyGroup>
  <MonoAotIncompatible>true</MonoAotIncompatible>  <!-- https://github.com/dotnet/runtime/issues/90427  -->
</PropertyGroup>

No loss of FullAOT coverage: the [Fact] methods in Validate.cs are already gated with [ActiveIssue("...90427", ..., IsMonoMINIFULLAOT)] and IsMonoFULLAOT, so they were already skipped at runtime on those variants. This change aligns build-time gating with the existing runtime gating.

Copilot AI self-assigned this May 22, 2026
Copilot AI review requested due to automatic review settings May 22, 2026 13:34
Copilot AI review requested due to automatic review settings May 22, 2026 13:34
Co-authored-by: kotlarmilos <11523312+kotlarmilos@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot May 22, 2026 13:39
Copilot AI changed the title [WIP] Fix CS0246 error in Validate.csproj for MiniFullAot Disable Validate.csproj build under Mono FullAOT to fix CS0246 May 22, 2026
Copilot AI requested a review from kotlarmilos May 22, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ci-scan] Build break: CS0246 InvalidCSharp not found in ByRefLike/Validate.csproj (MiniFullAot)

2 participants