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 1ce2524
Browse filesBrowse the repository at this point in the historyBrowse files
[dotnet-linker] Only use the new SetTypeMapEntryAssemblyStep on .NET 10.
The step is only needed on .NET 10, so:
* Condition the item group in Xamarin.Shared.Sdk.targets on the target
framework version being less than 11.0.
* Surround the step itself with '#if !NET11_0_OR_GREATER', so that it isn't
even compiled on .NET 11+.
Also revert the change to tests/common/shared-dotnet.mk, that's fixed in a
separate pull request.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3f879a89-7c49-4886-93e9-e43d848c5846
<ItemGroupCondition="'$(PrepareAssemblies)' == 'true' And '$(Registrar)' == 'trimmable-static'">
980
+
<ItemGroupCondition="'$(PrepareAssemblies)' == 'true' And '$(Registrar)' == 'trimmable-static' And $([MSBuild]::VersionLessThan($(TargetFrameworkVersion), '11.0'))">
981
981
<!--
982
982
This step must run even when all our other custom steps are disabled (which happens when both
983
983
PrepareAssemblies and PostProcessAssemblies are true), because otherwise ILLink will remove the
984
984
type map attributes from the type map assemblies the trimmable registrar generated before ILLink ran.
985
+
986
+
It's not needed on .NET 11+, because there we pass the typemap-entry-assembly argument to ILLink instead.
0 commit comments