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
Latests ci build including the "feat: Add IsTrimmable False metadata to assembly" breaks build in publish mode.
Steps to Reproduce
Create a maui app using latest ci builds of prism.
build app with "dotnet publish" (without PublishTrimmed=FALSE in the project file)
Platform with bug
.NET MAUI
Affected platforms
iOS, I was not able test on other platforms
Did you find any workaround?
Rollback to a pre january version of prism as disabling trimming is not possible for iOS.
Relevant log output
Fehler beim Buildvorgang.
"/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid.sln" (Publish Ziel) (1) ->"/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid/LBS_Rapid.csproj" (Publish Ziel) (2) ->
(_RunILLink Ziel) ->
/Users/jenkins/.nuget/packages/prism.container.abstractions/9.0.80-pre/lib/net8.0/Prism.Container.Abstractions.dll : error IL2102: Invalid AssemblyMetadata("IsTrimmable", "False") attribute in assembly 'Prism.Container.Abstractions'. Value must be "True". [/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid/LBS_Rapid.csproj::TargetFramework=net8.0-ios]
/Users/jenkins/.nuget/packages/prism.container.dryioc/9.0.80-pre/lib/net8.0/Prism.Container.DryIoc.dll : error IL2102: Invalid AssemblyMetadata("IsTrimmable", "False") attribute in assembly 'Prism.Container.DryIoc'. Value must be "True". [/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid/LBS_Rapid.csproj::TargetFramework=net8.0-ios]
/Users/jenkins/.nuget/packages/prism.core/9.0.349-pre/lib/net6.0/Prism.dll : error IL2102: Invalid AssemblyMetadata("IsTrimmable", "False") attribute in assembly 'Prism'. Value must be "True". [/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid/LBS_Rapid.csproj::TargetFramework=net8.0-ios]
/Users/jenkins/.nuget/packages/prism.dryioc.maui/9.0.349-pre/lib/net8.0/Prism.DryIoc.Maui.dll : error IL2102: Invalid AssemblyMetadata("IsTrimmable", "False") attribute in assembly 'Prism.DryIoc.Maui'. Value must be "True". [/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid/LBS_Rapid.csproj::TargetFramework=net8.0-ios]
/Users/jenkins/.nuget/packages/prism.events/9.0.349-pre/lib/net6.0/Prism.Events.dll : error IL2102: Invalid AssemblyMetadata("IsTrimmable", "False") attribute in assembly 'Prism.Events'. Value must be "True". [/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid/LBS_Rapid.csproj::TargetFramework=net8.0-ios]
/Users/jenkins/.nuget/packages/prism.maui.rx/9.0.349-pre/lib/net8.0/Prism.Maui.Rx.dll : error IL2102: Invalid AssemblyMetadata("IsTrimmable", "False") attribute in assembly 'Prism.Maui.Rx'. Value must be "True". [/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid/LBS_Rapid.csproj::TargetFramework=net8.0-ios]
/Users/jenkins/.nuget/packages/prism.maui/9.0.349-pre/lib/net8.0/Prism.Maui.dll : error IL2102: Invalid AssemblyMetadata("IsTrimmable", "False") attribute in assembly 'Prism.Maui'. Value must be "True". [/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid/LBS_Rapid.csproj::TargetFramework=net8.0-ios]
"/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid.sln" (Publish Ziel) (1) ->"/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid/LBS_Rapid.csproj" (Publish Ziel) (2) ->
(ILLink Ziel) ->
/Users/jenkins/.nuget/packages/microsoft.net.illink.tasks/8.0.0/build/Microsoft.NET.ILLink.targets(87,5): error NETSDK1144: Fehler bei der Größenoptimierung von Assemblys. Die Optimierung kann durch Festlegen der PublishTrimmed-Eigenschaft auf FALSE deaktiviert werden. [/Users/jenkins/slave/workspace/NWAI-ToHarvest-macpipeline8/LBS_Rapid/LBS_Rapid.csproj::TargetFramework=net8.0-ios]
The text was updated successfully, but these errors were encountered:
According to dotnet/maui#18658 third party libs like prism will not be trimmed unless you opt-in with IsTrimmable=true. So the easiest solution might be to reverse the "IsTrimmable=false" change.
Description
Latests ci build including the "feat: Add IsTrimmable False metadata to assembly" breaks build in publish mode.
Steps to Reproduce
Platform with bug
.NET MAUI
Affected platforms
iOS, I was not able test on other platforms
Did you find any workaround?
Rollback to a pre january version of prism as disabling trimming is not possible for iOS.
Relevant log output
The text was updated successfully, but these errors were encountered: