Added guard to throw InvalidOperrationException. #95723
Build osx-arm64 Release NativeAOT_Libraries failed
Annotations
Check failure on line 200 in src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets
azure-pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets#L200
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets(200,5): error NETSDK1102: (NETCORE_ENGINEERING_TELEMETRY=Build) Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.
Check failure on line 200 in src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets
azure-pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets#L200
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets(200,5): error NETSDK1102: (NETCORE_ENGINEERING_TELEMETRY=Build) Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.
Check failure on line 200 in src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets
azure-pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets#L200
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets(200,5): error NETSDK1102: (NETCORE_ENGINEERING_TELEMETRY=Build) Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.
Check failure on line 200 in src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets
azure-pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets#L200
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets(200,5): error NETSDK1102: (NETCORE_ENGINEERING_TELEMETRY=Build) Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.
Check failure on line 200 in src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets
azure-pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets#L200
src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets(200,5): error NETSDK1102: (NETCORE_ENGINEERING_TELEMETRY=Build) Optimizing assemblies for size is not supported for the selected publish configuration. Please ensure that you are publishing a self-contained app.