Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit b222a7d

Browse files
authored
Add explicit warnings to prevent adding AOT exclusion (#1030)
1 parent 8d10f54 commit b222a7d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

‎core/src/AzureMcp.Cli/AzureMcp.Cli.csproj‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@
5959
<PackageReference Include="System.CommandLine" />
6060
</ItemGroup>
6161

62-
<!-- Remove non-AOT safe projects and packages when building native -->
63-
<!-- https://github.com/Azure/azure-mcp-pr/issues/318 -->
62+
<!-- IMPORTANT: DO NOT ADD EXCLUSIONS HERE -->
63+
<!-- If the "(Native AOT) Build module" stage fails in CI, follow the AOT compatibility guide:
64+
https://github.com/Azure/azure-mcp/blob/main/docs/aot-compatibility.md
65+
Do not add ProjectReference removals in this ItemGroup. -->
6466
<ItemGroup Condition="'$(BuildNative)' == 'true'">
6567
<ProjectReference Remove="..\..\..\areas\cosmos\src\AzureMcp.Cosmos\AzureMcp.Cosmos.csproj" />
6668
<ProjectReference Remove="..\..\..\areas\azuremanagedlustre\src\AzureMcp.AzureManagedLustre\AzureMcp.AzureManagedLustre.csproj" />

‎core/src/AzureMcp.Cli/Program.cs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ private static IAreaSetup[] RegisterAreas()
8989
new AzureMcp.VirtualDesktop.VirtualDesktopSetup(),
9090
new AzureMcp.Workbooks.WorkbooksSetup(),
9191
#if !BUILD_NATIVE
92+
// IMPORTANT: DO NOT MODIFY OR ADD EXCLUSIONS IN THIS SECTION
93+
// This block must remain as-is.
94+
// If the "(Native AOT) Build module" stage fails in CI,
95+
// follow the AOT compatibility guide instead of changing this list:
96+
// https://github.com/Azure/azure-mcp/blob/main/docs/aot-compatibility.md
9297
new AzureMcp.BicepSchema.BicepSchemaSetup(),
9398
new AzureMcp.AzureManagedLustre.AzureManagedLustreSetup(),
9499
new AzureMcp.Cosmos.CosmosSetup(),

0 commit comments

Comments
 (0)