You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4832002
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Add NativeAOT aggregate executable shims with preview-feature gating (#128553)
- Enable NativeAOT shared-library projects to aggregate multiple
executable entry points into one native library and emit per-app shim
executables across Windows, Linux, and macOS.
- Keep aggregate shim generation/linking behavior and incremental build
tracking fixes (including Windows import-library tracking, Unix runtime
lookup behavior, and x86 Windows symbol handling).
- Gate `IncludeInAggregateExecutable` behind preview opt-in: building
with aggregate executable `ProjectReference` items now requires
`EnablePreviewFeatures=true` (with an explicit build error otherwise),
and the NativeAOT aggregate test project opts in.
## Testing
- `dotnet msbuild
src/tests/nativeaot/AggregateExecutableLibrary/AggregateLibrary.csproj
/t:ComputeAggregateExecutableInputs /p:EnablePreviewFeatures=false
-nologo`
- Verifies the new preview-feature error is emitted.
- `dotnet msbuild
src/tests/nativeaot/AggregateExecutableLibrary/AggregateLibrary.csproj
/t:ComputeAggregateExecutableInputs /p:EnablePreviewFeatures=true
-nologo`
- Verifies aggregate executable input computation succeeds with preview
enabled.
- `dotnet build
src/tests/nativeaot/AggregateExecutableLibrary/AggregateLibrary.csproj
-c Debug -v minimal`
- Still blocked in this environment by missing prebuilt `libs` artifacts
(`eng/liveBuilds.targets` prerequisite), unrelated to this change.
## Breaking change?
- [ ] Yes
- [x] No
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: MichalStrehovsky <[email protected]>
Co-authored-by: Michal Strehovský <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Condition="'$(_AggregateExecutable)' == 'true' and '$(CopyOutputSymbolsToPublishDirectory)' == 'true' and '$(NativeSymbolExt)' != '.dSYM' and Exists('%(_AggregateExecutableShimSymbol.Identity)')">
Condition="'$(_AggregateExecutable)' == 'true' and '$(CopyOutputSymbolsToPublishDirectory)' == 'true' and '$(NativeSymbolExt)' == '.dSYM' and Exists('%(_AggregateExecutableReferencePath.ShimSymbol)')">
<!-- this workaround can be deleted once the minimum supported glibc version
271
271
(runtime's official build machine's glibc version) is at least 2.33
272
272
see https://github.com/bminor/glibc/commit/99468ed45f5a58f584bab60364af937eb6f8afda -->
@@ -376,4 +376,60 @@ The .NET Foundation licenses this file to you under the MIT license.
<ErrorCondition="'$(_VCVarsAllFound)' == '1'"Text="Platform linker not found. Ensure you have all the required prerequisites documented at https://aka.ms/nativeaot-prerequisites, in particular the Desktop Development for C++ workload in Visual Studio. For ARM64 development also install C++ ARM64 build tools." />
0 commit comments