Skip to content

[msbuild/tools] Move post-trimming custom trimmer steps to a post-ILLink MSBuild task.#25742

Draft
rolfbjarne wants to merge 20 commits into
mainfrom
dev/rolf/assembly-postparer
Draft

[msbuild/tools] Move post-trimming custom trimmer steps to a post-ILLink MSBuild task.#25742
rolfbjarne wants to merge 20 commits into
mainfrom
dev/rolf/assembly-postparer

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

WIP WIP WIP.

Contributes towards #17693.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a WIP step toward replacing custom ILLink linker steps by moving the “post-trimming” work into an MSBuild task (assembly preparer mode), enabling a trimmer-agnostic pipeline (ILLink and future NativeAOT scenarios).

Changes:

  • Introduces an MSBuild-driven post-processing phase for prepared assemblies (PostProcessAssemblies + _PostprocessAssemblies target).
  • Refactors/extends assembly-preparer to load assemblies, run pre/post steps, and save results (new steps + expanded pipeline).
  • Adapts several linker steps to run both in the traditional linker pipeline and in assembly-preparer mode; adds a Windows remote test for assembly preparer.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
tools/linker/RemoveUserResourcesSubStep.cs Updates the step to work in both linker and assembly-preparer pipelines.
tools/linker/MonoTouch.Tuner/ListExportedSymbols.cs Adds ASSEMBLY_PREPARER support for the step.
tools/dotnet-linker/Steps/RegistrarStep.cs Adjusts registrar filtering behavior for assembly-preparer mode.
tools/dotnet-linker/Steps/GenerateReferencesStep.cs Switches to StringUtils.IsNullOrEmpty for consistency.
tools/dotnet-linker/Steps/ExtractBindingLibrariesStep.cs Uses PathUtils.AbsoluteToRelative instead of Path.GetRelativePath.
tools/dotnet-linker/LinkerConfiguration.cs Extends configuration for assembly-preparer mode (AssemblyInfos, etc).
tools/common/Application.cs Adds an explicit IsPostProcessingAssemblies flag for assembly-preparer mode.
tools/assembly-preparer/SaveAssembliesStep.cs New step to write assemblies after processing (and strip crossgen markers).
tools/assembly-preparer/LoadAssembliesStep.cs New step to load assemblies + determine trimming action.
tools/assembly-preparer/ComputeMethodOverridesStep.cs New step to precompute method overrides into annotations.
tools/assembly-preparer/CollectFieldsStep.cs New step to collect exported field symbols (compat for InlineDlfcn).
tools/assembly-preparer/AssemblyPreparer.cs Splits pipeline into Prepare vs PostProcess and runs step lists accordingly.
tools/assembly-preparer/assembly-preparer.csproj Wires additional steps and dependencies into the assembly-preparer tool.
tests/dotnet/UnitTests/WindowsTest.cs Adds a remote Windows test validating assembly-preparer behavior/artifacts.
msbuild/Xamarin.Shared/Xamarin.Shared.targets Adds PostProcessAssemblies and introduces _PostprocessAssemblies target.
msbuild/Xamarin.MacDev.Tasks/Tasks/PrepareAssemblies.cs Adds a post-processing mode invocation path for AssemblyPreparer.
dotnet/targets/Xamarin.Shared.Sdk.targets Avoids running existing custom trimmer steps when post-processing is enabled.

Comment on lines 43 to 55
@@ -44,6 +54,7 @@ protected override void EndProcess ()
base.EndProcess ();
}
Comment on lines +3454 to +3477
<Target
Name="_PostprocessAssemblies"
Condition="'$(PrepareAssemblies)' == 'true'"
Inputs="@(_PreparedAssemblies)"
Outputs="$(_PrepareAssembliesStampFile)"
BeforeTargets="_LoadLinkerOutput"
>
<PrepareAssemblies
InputAssemblies="@(_PreparedAssemblies)"
MakeReproPath="$(_PostprocessAssembliesMakeReproPath)"
OptionsFile="$(_CustomLinkerOptionsFile)"
OriginalAssemblies="$(_AssembliesToPrepare)"
Postprocessing="true"
TargetFrameworkMoniker="$(_ComputedTargetFrameworkMoniker)"
>
<Output TaskParameter="OutputAssemblies" ItemName="_PostProcessedAssemblies" />
</PrepareAssemblies>

<ItemGroup>
<ResolvedFileToPublish Remove="@(_PreparedAssemblies)" />
<ResolvedFileToPublish Include="@(_PostProcessedAssemblies)" />
<FileWrites Include="@(_PostProcessedAssemblies)" />
</ItemGroup>
</Target>
Comment on lines +23 to +28
foreach (var assembly in configuration.AssemblyInfos) {
var assemblyDefinition = assembly.Assembly;
if (assemblyDefinition is null) {
exceptions.Add (ErrorHelper.CreateError (99, $"Assembly definition is null for {assembly.InputPath}"));
return;
}
Comment on lines +61 to +64
try {
assemblyDefinition.Write (assembly.OutputPath, writerParameters);
ModuleAttributes m = assemblyDefinition.MainModule.Attributes;
} catch (Exception e) {
@@ -0,0 +1,89 @@
// Copilot: add license
@@ -0,0 +1,124 @@
// Copilot: add license
@@ -0,0 +1,57 @@
// Copilot: add license
@@ -0,0 +1,14 @@
// Copilot: add license
Comment on lines +388 to +392
using var memoryStream = new MemoryStream ((int) infoPlistEntry!.Length);
using var plistStream = infoPlistEntry.Open ();
plistStream.CopyTo (memoryStream);

var infoPlist = (PDictionary) PDictionary.FromStream (memoryStream)!;
Comment on lines +38 to +40
public ITaskItem [] OriginalAssemblies { get; set; } = [];

public bool PostProcessing { get; set; }
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #8a3a11e] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

0 tests crashed, 61 tests failed, 159 tests passed.

Failures

❌ dotnettests tests (iOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: BuildFailure

Html Report (VSDrops) Download

❌ dotnettests tests (MacCatalyst)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: BuildFailure

Html Report (VSDrops) Download

❌ dotnettests tests (macOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: BuildFailure

Html Report (VSDrops) Download

❌ dotnettests tests (Multiple platforms)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: BuildFailure

Html Report (VSDrops) Download

❌ dotnettests tests (tvOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: BuildFailure

Html Report (VSDrops) Download

❌ generator tests

1 tests failed, 4 tests passed.

Failed tests

  • BGen tests: Failed (Execution failed with exit code 1)
    • GeneratorTests.BGenTests.SnippetAttributesOptimizable: BGen failed with exit code 1: build
      /Users/builder/azdo/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-preview.0.26316.10...

Html Report (VSDrops) Download

❌ interdependent-binding-projects tests

2 tests failed, 2 tests passed.

Failed tests

  • interdependent-binding-projects/iOS - simulator/Debug: LaunchTimedOut
  • interdependent-binding-projects/tvOS - simulator/Debug: LaunchTimedOut

Html Report (VSDrops) Download

❌ linker tests (iOS)

5 tests failed, 10 tests passed.

Failed tests

  • trimmode copy/iOS - simulator/Release: BuildFailure
  • dont link/iOS - simulator/Debug (PrepareAssemblies, MonoVM, Dynamic Registrar): BuildFailure
  • dont link/iOS - simulator/Debug (PrepareAssemblies, MonoVM, Managed Static Registrar): BuildFailure
  • dont link/iOS - simulator/Release (PrepareAssemblies, MonoVM, Dynamic Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/iOS - simulator/Release (PrepareAssemblies, MonoVM, Managed Static Registrar): BuildFailure

Html Report (VSDrops) Download

❌ linker tests (MacCatalyst)

4 tests failed, 11 tests passed.

Failed tests

  • dont link/Mac Catalyst/Debug (PrepareAssemblies, MonoVM, Dynamic Registrar): BuildFailure
  • dont link/Mac Catalyst/Debug (PrepareAssemblies, MonoVM, Managed Static Registrar): BuildFailure
  • dont link/Mac Catalyst/Release (PrepareAssemblies, MonoVM, Dynamic Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/Mac Catalyst/Release (PrepareAssemblies, MonoVM, Managed Static Registrar): BuildFailure

Html Report (VSDrops) Download

❌ linker tests (macOS)

10 tests failed, 11 tests passed.

Failed tests

  • dont link/macOS/Debug (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure
  • dont link/macOS/Debug (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure
  • dont link/macOS/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • dont link/macOS/Release (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/macOS/Release (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/macOS/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • link sdk/macOS/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • link sdk/macOS/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • link all/macOS/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • link all/macOS/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure

Html Report (VSDrops) Download

❌ linker tests (tvOS)

4 tests failed, 11 tests passed.

Failed tests

  • dont link/tvOS - simulator/Debug (PrepareAssemblies, MonoVM, Dynamic Registrar): BuildFailure
  • dont link/tvOS - simulator/Debug (PrepareAssemblies, MonoVM, Managed Static Registrar): BuildFailure
  • dont link/tvOS - simulator/Release (PrepareAssemblies, MonoVM, Dynamic Registrar): BuildFailure
  • dont link/tvOS - simulator/Release (PrepareAssemblies, MonoVM, Managed Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ monotouch tests (iOS)

21 tests failed, 0 tests passed.

Failed tests

  • monotouch-test/iOS - simulator/Debug: LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (link sdk): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (link all): LaunchTimedOut
  • monotouch-test/iOS - simulator/Debug (PrepareAssemblies): BuildFailure
  • monotouch-test/iOS - simulator/Debug (LinkSdk): LaunchTimedOut
  • monotouch-test/iOS - simulator/Debug (static registrar): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (all optimizations): LaunchTimedOut
  • monotouch-test/iOS - simulator/Debug (ARM64): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (NativeAOT, ARM64): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (trimmable static registrar, NativeAOT, ARM64): LaunchTimedOut
  • monotouch-test/iOS - simulator/Debug (managed static registrar): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (managed static registrar, all optimizations): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (NativeAOT, x64): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (trimmable static registrar, NativeAOT, x64): LaunchTimedOut
  • monotouch-test/iOS - simulator/Debug (interpreter): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (interpreter): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (compat inline Class.GetHandle): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (strict inline Class.GetHandle): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (compat inline dlfcn): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (strict inline dlfcn, link sdk): LaunchTimedOut
  • monotouch-test/iOS - simulator/Release (NativeAOT, .NET 11 defaults): LaunchTimedOut

Html Report (VSDrops) Download

❌ monotouch tests (MacCatalyst)

1 tests failed, 23 tests passed.

Failed tests

  • monotouch-test/Mac Catalyst/Debug (PrepareAssemblies): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ monotouch tests (macOS)

2 tests failed, 22 tests passed.

Failed tests

  • monotouch-test/macOS/Debug (PrepareAssemblies): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (trimmable static registrar, NativeAOT, x64): TimedOut (Execution timed out after 1200 seconds.
    Test run crashed)

Html Report (VSDrops) Download

❌ monotouch tests (tvOS)

1 tests failed, 20 tests passed.

Failed tests

  • monotouch-test/tvOS - simulator/Debug (PrepareAssemblies): BuildFailure

Html Report (VSDrops) Download

❌ windows tests

3 tests failed, 0 tests passed.

Failed tests

  • BGen tests/GeneratorTests.ErrorTests.BI1066(iOS): Failed: The error 'BI1066' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.StackOverflow20696157: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.AvailabilityAttributes(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1050_model(iOS): Failed: The error 'BI1050' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.ForcedType: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug36457: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.GenericNSObjectParameter: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Desk79124: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.ClassNameCollision(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1065(iOS): Failed: The error 'BI1065' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.GHIssue18645_DuplicatedFiled: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug53076: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1041(macOSMobile): Failed: The error 'BI1041' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.GHIssue5444: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug15283: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.MissingExportOnProperty(macOSMobile): Failed: The error 'BI1018' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.BindAsNoRefParam(iOS): Failed: The error 'BI1080' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.FieldEnumTests(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.NFloatType: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.StrongDictSupportTemplatedDicts: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.MissingExportOnProperty(iOS): Failed: The error 'BI1018' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.ProtocolDuplicateAbstract(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug46292(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.INativeObjectArraysInBlocks(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1042(iOS): Failed: The error 'BI1042' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.SimulatorAvailabilityAttributes_NotEmittedForMacPlatforms(MacCatalyst): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.BMac_Smoke(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1117_methodinternal(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.ReturnRelease: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.CSharp10Syntax: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.InternalDelegate: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug17232: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug35176: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.NativeEnum(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.ArrayFromHandleBug: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1039(macOSMobile): Failed: The error 'BI1039' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.BI1117_classinternal(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.NoWarn(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.BothProtectedAndInternal(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BindAsNullableNSValueArrayError(iOS): Failed: The error 'BI1048' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.Bug39614(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.AvailabilityAttributes(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.DelegatesWithPointerTypes(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.TypesInMultipleNamespaces(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.ErrorDomain_NoLibraryName(iOS): Failed: The error 'BI1087' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.AbstractTypeTest: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug29493: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.AttributesFromInlinedProtocols(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.DelegateWithINativeObjectReturnType: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BindAsNoMultidimensionalArrays(iOS): Failed: The error 'BI1048' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.Bug57531: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.GH6863_method(iOS): Failed: The error 'BI1072' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.Issue19612: Failed: CSC exit code

  • BGen tests/GeneratorTests.BGenTests.GH5416_setter(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug18035(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.ObsoletedOSPlatform(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.SnippetAttributesOptimizable: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug27430: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug53076WithModel: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.IsDirectBinding: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.BMac_With_Hyphen_In_Name(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.GHIssue9065_Sealed: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.NSApplicationPublicEnsureMethods(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.BindAsTests: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ProtocolTests.Members(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1062_NoAsyncMethodRefParameterTest(iOS): Failed: The error 'BI1062' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.GeneratedAttributeOnPropertyAccessors2: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.StrongDictionaryErrors(MacCatalyst): Failed: The error 'BI1121' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.NoWarn(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1060(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.PreviewAPIs(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.ProtocolWithBaseTypeButNoModel(MacCatalyst): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1038(macOSMobile): Failed: The error 'BI1038' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.Bug40282: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Issue3875("issue3875C.cs","api0__Issue3875_AProtocol"): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.ProtocolBindProperty: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.MultipleApiDefinitions1: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.NSCopyingNullability(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.EditorBrowsable(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.DelegateParameterAttributes: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.WarnAsError(iOS): Failed: The error 'BI1117' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.BindAsNoOutParam(iOS): Failed: The error 'BI1080' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.BI1117(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.NoAvailabilityForAccessors(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.SmartEnumWithFramework(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ProtocolTests.Members(MacCatalyst): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.MultipleApiDefinitions2: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.DelegatesWithNullableReturnType(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.AvailabilityAttributes(MacCatalyst): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1067_1070(iOS): Failed: The error 'BI1067' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.VSTS970507: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1062_NoAsyncMethodOutParameterTest(iOS): Failed: The error 'BI1062' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.BI1063_NoDoubleWrapTest(iOS): Failed: The error 'BI1063' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.DesignatedInitializer(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.BackingFieldType(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.PreviewAPIs(tvOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.StrongDictsNativeEnums: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.BackingFieldType(MacCatalyst): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1046(iOS): Failed: The error 'BI1046' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.BI1112_Bug37527_WrongProperty(iOS): Failed: The error 'BI1112' was not found in the output.

  • BGen tests/GeneratorTests.BGen.ResponseFile(iOS): Failed: BGen failed with exit code 1: response file

  • BGen tests/GeneratorTests.BGenTests.SimulatorAvailabilityAttributes(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.NoAsyncWarningCS0219(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.XmlDocs(MacCatalyst): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.INativeObjectsInBlocks(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.PropertyRedefinition: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug42742: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Forum54078: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1050_protocol(iOS): Failed: The error 'BI1050' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.Desk63279: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug31788(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Issue3875("issue3875B.cs","BProtocol"): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.GH6863_property(iOS): Failed: The error 'BI1071' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.PreviewAPIs(MacCatalyst): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.GeneratedAttributeOnPropertyAccessors: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1064(iOS): Failed: The error 'BI1064' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.Bug16036: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug27428: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug43579: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.SimulatorAvailabilityAttributes_NotEmittedForMacPlatforms(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1113_Bug37527_MissingProperty(iOS): Failed: The error 'BI1113' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.PropertyRedefinitionMac(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug57870: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.VirtualWrap(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.GH5416_method(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug15307: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.NewerAvailabilityInInlinedProtocol(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.RefOutParameters: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1077(iOS): Failed: The error 'BI1077' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.BI1062_NoAsyncMethodOutHandlerTest(iOS): Failed: The error 'BI1062' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.DynamicDependencyAttribute: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.DisposeAttributeOptimizable: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.WarnAsError(macOSMobile): Failed: The error 'BI1117' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.BI1049(iOS): Failed: The error 'BI1049' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.Bug27986: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1037(macOSMobile): Failed: The error 'BI1037' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.IgnoreUnavailableProtocol: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.ErrorDomain(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Bug34042: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.GHIssue5692: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.GHIssue6626: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.HyphenInName: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1036(iOS): Failed: The error 'BI1036' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.XmlDocs(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.XmlDocs(macOSMobile): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1040(macOSMobile): Failed: The error 'BI1040' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.NoAsyncInternalWrapper(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1059(iOS): Failed: The error 'BI1084' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.BindAsNullableNSStringArrayError(iOS): Failed: The error 'BI1048' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.PreviewAPIs(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.GenericStrongDictionary: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.UnderlyingFieldType(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.Issue3875("issue3875.cs","api0__Issue3875_AProtocol"): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.SimulatorAvailabilityAttributes(tvOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.GHIssue3869: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BI1062_NoAsyncMethodRefHandlerTest(iOS): Failed: The error 'BI1062' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.DiamondProtocol: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.Bug57094Test(iOS): Failed: The error 'BI1014' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.Bug24078: Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.XmlDocs(tvOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.ReleaseAttribute(iOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.BGenTests.AvailabilityAttributes(tvOS): Failed: BGen failed with exit code 1: build

  • BGen tests/GeneratorTests.ErrorTests.BindAsNullableNSNumberArrayError(iOS): Failed: The error 'BI1048' was not found in the output.

  • BGen tests/GeneratorTests.ErrorTests.BI1048(iOS): Failed: The error 'BI1048' was not found in the output.

  • BGen tests/GeneratorTests.BGenTests.GHIssue7304: Failed: BGen failed with exit code 1: build

Html Report (VSDrops) Download

❌ xcframework tests

2 tests failed, 2 tests passed.

Failed tests

  • xcframework-test/iOS - simulator/Debug: LaunchTimedOut
  • xcframework-test/tvOS - simulator/Debug: LaunchTimedOut

Html Report (VSDrops) [Download](https://devdiv.visualstudio.com/DevDiv/_apis/build/builds/14417896/artif\n\nThe message from CI is too large for the GitHub comments. You can find the full results here.

rolfbjarne and others added 2 commits June 19, 2026 12:53
Five fixes for the assembly-preparer (prepare-assemblies) build path:

1. SaveAssembliesStep: Skip non-CIL assemblies (e.g. NativeLibrary.dll)
   instead of erroring out. LoadAssembliesStep already handles them by
   setting OutputPath = InputPath.

2. _PostprocessAssemblies target: Remove Inputs/Outputs attributes since
   _PrepareAssembliesStampFile was never defined, causing MSBuild to
   always skip the target.

3. ListExportedSymbols.TryProcessAssembly: Remove base.ProcessAssembly()
   call which caused infinite recursion through ConfigurationAwareStep's
   sealed ProcessAssembly → TryProcessAssembly cycle.

4. ListExportedSymbols.TryEndProcess: Guard base.EndProcess() call with
   #if !ASSEMBLY_PREPARER to prevent the same infinite recursion pattern.

5. FlushOutputForMSBuild: Create ItemsDirectory before writing .items
   files, since the linker-items directory doesn't exist in the
   assembly-preparer path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
In the old linker path, InlineClassGetHandleStep is conditionally added
to the ILLink custom steps only when InlineClassGetHandle is set and not
'disabled'. In the assembly-preparer, it was always included in the
Prepare step list.

When InlineClassGetHandle is empty (disabled), the step was creating
P/Invoke wrappers (e.g. xamarin_Class_GetHandle_XamarinSwiftFunctions_Native)
that have no native implementation when the registrar is dynamic,
causing undefined symbol errors at native link time.

Override ConditionToProcess() to skip the entire step (initialization,
per-assembly processing, and end processing) when the mode is Disabled.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
rolfbjarne and others added 6 commits June 19, 2026 12:53
Move _PostprocessAssemblies target to run before _ComputeStripAssemblyIL
(in addition to _LoadLinkerOutput) so that assembly modifications happen
before AOT compilation, preventing MVID mismatches at runtime.

Add PopulateApplicationAssembliesStep to PostProcess to populate
Application.Assemblies, which is needed by ComputeAOTArguments and
GatherFrameworksStep (equivalent to LoadNonSkippedAssembliesStep in
the ILLink path).

Fix Assembly.FullPath setter in ASSEMBLY_PREPARER builds: was throwing
InvalidOperationException unconditionally, now correctly computes
is_framework_assembly using Configuration.FrameworkAssemblies (same
logic as the non-ASSEMBLY_PREPARER path).

Fix ComputeAOTArguments to use asm.FullPath for the assembly path
instead of IntermediateLinkDir + filename, so it references the correct
location (prepared-assemblies/ instead of linked/).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Three fixes to ensure AOT compilation uses the correct (postprocessed)
assemblies:

1. SaveAssembliesStep: During PostProcess, copy unchanged (Copy/CopyUsed
   action) assemblies to the output directory instead of leaving
   OutputPath pointing to linked/. This ensures all assemblies are in
   the same directory, which is required by the AOT compiler (it copies
   them to aot-input/ and validates paths match).

2. PopulateApplicationAssembliesStep: Move after SaveAssembliesStep and
   use AssemblyInfos + OutputPath instead of TryProcessAssembly, so that
   Application.Assemblies gets the correct postprocessed paths (not the
   linked/ input paths).

3. AssemblyPreparer: Reorder steps accordingly.

This fixes the runtime crash where AOT images were compiled from
linked/ assemblies but the bundle contained postprocessed/ versions
with different binary layouts (due to Cecil rewriting assemblies that
had resources removed by RemoveUserResourcesSubStep).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #723af88] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 723af889cb9b2470f82d75103060060ba806cb9c [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #723af88] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 723af889cb9b2470f82d75103060060ba806cb9c [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [PR Build #723af88] Build failed (Build macOS tests) 🔥

Build failed for the job 'Build macOS tests' (with job status 'Failed')

Pipeline on Agent
Hash: 723af889cb9b2470f82d75103060060ba806cb9c [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 723af889cb9b2470f82d75103060060ba806cb9c [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #723af88] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

5 tests crashed, 35 tests failed, 160 tests passed.

Failures

❌ assembly-processing tests

1 tests failed, 0 tests passed.

Failed tests

  • Assembly processing tests: Failed (Execution failed with exit code 1)
    • AssemblyPreparerTests.InlineDlfcnMethodsStepTests.MarkedTest(iOS...: System.IO.FileNotFoundException : Could not find file '/Users/builder/azdo/_work/1/s/macios/tests/assembly-preparer/bin/Debug/ne...
    • AssemblyPreparerTests.InlineDlfcnMethodsStepTests.MarkedTest(Mac...: System.IO.FileNotFoundException : Could not find file '/Users/builder/azdo/_work/1/s/macios/tests/assembly-preparer/bin/Debug/ne...
    • AssemblyPreparerTests.InlineDlfcnMethodsStepTests.MarkedTest(Mac...: System.IO.FileNotFoundException : Could not find file '/Users/builder/azdo/_work/1/s/macios/tests/assembly-preparer/bin/Debug/ne...
    • ... and 42 more

Html Report (VSDrops) Download

❌ cecil tests

1 tests failed, 0 tests passed.

Failed tests

  • Cecil-based tests: Failed (Execution failed with exit code 1)
    • Cecil.Tests.ApiAvailabilityTest.AttributeConsistency(): System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
      ----> NUnit.Framework....
    • Cecil.Tests.ApiAvailabilityTest.FindMissingObsoleteAttributes: Assembly existence
      Assert.That(assembly, Does.Exist)
      Expected: file or directory exists
      But was: "/Users/builder/azdo/_wo...
    • Cecil.Tests.ApiCapitalizationTest.EventsCapitalizationTest(): System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
      ----> NUnit.Framework....
    • ... and 46 more

Html Report (VSDrops) Download

❌ dotnettests tests (iOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: BuildFailure

Html Report (VSDrops) Download

❌ dotnettests tests (MacCatalyst)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: BuildFailure

Html Report (VSDrops) Download

❌ dotnettests tests (macOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: BuildFailure

Html Report (VSDrops) Download

❌ dotnettests tests (Multiple platforms)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: BuildFailure

Html Report (VSDrops) Download

❌ dotnettests tests (tvOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: BuildFailure

Html Report (VSDrops) Download

❌ generator tests

3 tests failed, 2 tests passed.

Failed tests

  • BGen tests: Failed (Execution failed with exit code 1)
    • GeneratorTests.BGen.ResponseFile(iOS): BGen failed with exit code 1: response file
      /Users/builder/azdo/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-preview.0....
    • GeneratorTests.BGenTests.AbstractTypeTest: BGen failed with exit code 1: build
      /Users/builder/azdo/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-preview.0.26316.10...
    • GeneratorTests.BGenTests.ArrayFromHandleBug: BGen failed with exit code 1: build
      /Users/builder/azdo/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-preview.0.26316.10...
    • ... and 162 more
  • Roslyn Generator tests: Failed (Execution failed with exit code 1)
    • Microsoft.Macios.Generator.Tests.Attributes.ProtocolMemberDataTe...: System.IO.FileNotFoundException : Could not find a part of the path '/Users/builder/azdo/_work/1/s/macios/builds/downloads/dotne...
    • Microsoft.Macios.Generator.Tests.Attributes.ProtocolMemberDataTe...: System.IO.FileNotFoundException : Could not find a part of the path '/Users/builder/azdo/_work/1/s/macios/builds/downloads/dotne...
    • Microsoft.Macios.Generator.Tests.Attributes.ProtocolMemberDataTe...: System.IO.FileNotFoundException : Could not find a part of the path '/Users/builder/azdo/_work/1/s/macios/builds/downloads/dotne...
    • ... and 4081 more
  • Roslyn Analyzer tests: Failed (Execution failed with exit code 1)
    • Microsoft.Macios.Bindings.Analyzer.Tests.BindingTypeSemanticAnal...: System.IO.FileNotFoundException : Could not find a part of the path '/Users/builder/azdo/_work/1/s/macios/builds/downloads/dotne...
    • Microsoft.Macios.Bindings.Analyzer.Tests.BindingTypeSemanticAnal...: System.IO.FileNotFoundException : Could not find a part of the path '/Users/builder/azdo/_work/1/s/macios/builds/downloads/dotne...
    • Microsoft.Macios.Bindings.Analyzer.Tests.BindingTypeSemanticAnal...: System.IO.FileNotFoundException : Could not find a part of the path '/Users/builder/azdo/_work/1/s/macios/builds/downloads/dotne...
    • ... and 317 more

Html Report (VSDrops) Download

❌ linker tests (iOS)

2 tests failed, 13 tests passed.

Failed tests

  • dont link/iOS - simulator/Debug (PrepareAssemblies, MonoVM, Managed Static Registrar): Crashed
  • dont link/iOS - simulator/Release (PrepareAssemblies, MonoVM, Managed Static Registrar): Crashed

Html Report (VSDrops) Download

❌ linker tests (MacCatalyst)

3 tests failed, 12 tests passed.

Failed tests

  • dont link/Mac Catalyst/Debug (PrepareAssemblies, MonoVM, Managed Static Registrar): Failed (Test run crashed (exit code: 134).
    No test log file was produced)
  • dont link/Mac Catalyst/Release (PrepareAssemblies, MonoVM, Dynamic Registrar): BuildFailure
  • dont link/Mac Catalyst/Release (PrepareAssemblies, MonoVM, Managed Static Registrar): BuildFailure

Html Report (VSDrops) Download

❌ linker tests (macOS)

9 tests failed, 12 tests passed.

Failed tests

  • dont link/macOS/Debug (PrepareAssemblies, CoreCLR, Managed Static Registrar): Failed (Test run crashed (exit code: 134).
    No test log file was produced)
  • dont link/macOS/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): Failed (Test run crashed (exit code: 134).
    No test log file was produced)
  • dont link/macOS/Release (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure
  • dont link/macOS/Release (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure
  • dont link/macOS/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • link sdk/macOS/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • link sdk/macOS/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • link all/macOS/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • link all/macOS/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure

Html Report (VSDrops) Download

❌ linker tests (tvOS)

2 tests failed, 13 tests passed.

Failed tests

  • dont link/tvOS - simulator/Debug (PrepareAssemblies, MonoVM, Managed Static Registrar): Crashed
  • dont link/tvOS - simulator/Release (PrepareAssemblies, MonoVM, Managed Static Registrar): Crashed

Html Report (VSDrops) Download

❌ monotouch tests (iOS)

1 tests failed, 20 tests passed.

Failed tests

  • monotouch-test/iOS - simulator/Debug (PrepareAssemblies): Failed

Html Report (VSDrops) Download

❌ monotouch tests (MacCatalyst)

1 tests failed, 23 tests passed.

Failed tests

  • monotouch-test/Mac Catalyst/Debug (PrepareAssemblies): Failed (Test run failed.
    Tests run: 3770 Passed: 3610 Inconclusive: 10 Failed: 2 Ignored: 158)

Html Report (VSDrops) Download

❌ monotouch tests (macOS)

2 tests failed, 22 tests passed.

Failed tests

  • monotouch-test/macOS/Debug (PrepareAssemblies): Failed (Test run failed.
    Tests run: 3720 Passed: 3612 Inconclusive: 4 Failed: 2 Ignored: 106)
  • monotouch-test/macOS/Release (trimmable static registrar, NativeAOT, ARM64): TimedOut (Execution timed out after 1200 seconds.
    Test run crashed)

Html Report (VSDrops) Download

❌ monotouch tests (tvOS)

1 tests failed, 20 tests passed.

Failed tests

  • monotouch-test/tvOS - simulator/Debug (PrepareAssemblies): Failed

Html Report (VSDrops) Download

❌ sharpie tests

1 tests failed, 0 tests passed.

Failed tests

  • Sharpie tests: Failed (Execution failed with exit code 1)
    • Sharpie.Bind.Tests.OnDiskTests.ParseNoRunTest("Category.h",""): Expected success
      Assert.That(bindings.ExitCode, Is.EqualTo (0))
      Expected: 0
      But was: 1

    • Sharpie.Bind.Tests.OnDiskTests.ParseNoRunTest("CFRelatedType.h",...: Expected success
      Assert.That(bindings.ExitCode, Is.EqualTo (0))
      Expected: 0
      But was: 1

    • Sharpie.Bind.Tests.OnDiskTests.ParseNoRunTest("CodeAuditedAttrib...: Expected success
      Assert.That(bindings.ExitCode, Is.EqualTo (0))
      Expected: 0
      But was: 1

    • ... and 108 more

Html Report (VSDrops) Download

❌ windows tests

2 tests failed, 1 tests passed.

Failed tests

  • Remote .NET tests: Failed
  • Local .NET tests: Failed

Html Report (VSDrops) Download

❌ xtro tests

1 tests failed, 0 tests passed.

Failed tests

  • Xtro: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.Xtro.RunTest: ExitCode
      Assert.That(rv, Is.EqualTo (0))
      Expected: 0
      But was: 2

Html Report (VSDrops) Download

❌ Tests on macOS Monterey (12) tests

🔥 Failed catastrophically on VSTS: test results - mac_monterey (no summary found).

Html Report (VSDrops) Download

❌ Tests on macOS Ventura (13) tests

🔥 Failed catastrophically on VSTS: test results - mac_ventura (no summary found).

Html Report (VSDrops) Download

❌ Tests on macOS Sonoma (14) tests

🔥 Failed catastrophically on VSTS: test results - mac_sonoma (no summary found).

Html Report (VSDrops) Download

❌ Tests on macOS Sequoia (15) tests

🔥 Failed catastrophically on VSTS: test results - mac_sequoia (no summary found).

Html Report (VSDrops) Download

❌ Tests on macOS Tahoe (26) tests

🔥 Failed catastrophically on VSTS: test results - mac_tahoe (no summary found).

Html Report (VSDrops) Download

Successes

✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download

macOS tests

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 723af889cb9b2470f82d75103060060ba806cb9c [PR build]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants