Skip to content

System.ComponentModel.TypeConverter usage throws in Release mode #5275

Closed
@pjcollins

Description

@pjcollins

Steps to Reproduce

  1. Add the following snippet to a .NET 6 project:
var typeConverter = TypeDescriptor.GetConverter (typeof (Color));
var color = (Color)typeConverter.ConvertFromString ("#FFAAEE");

Android.Util.Log.Debug("#####TAG#####", $"ARGB= {color.A}, {color.R}, {color.G}, {color.B}";);

This works as expected with a debug deployment, but fails in release. We may be removing an assembly that is needed?

Exception: https://gist.github.com/pjcollins/6fa260d92679bc53b43945a19b2f5af2

Binlog: msbuild.zip

Metadata

Metadata

Assignees

Labels

Area: App RuntimeIssues in `libmonodroid.so`.Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions