-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Type converters are linked away in .NET 5+ when using TrimMode=link #1451
Comments
61 tasks
Moved to correct repo |
rolfbjarne
added a commit
to rolfbjarne/xamarin-macios
that referenced
this issue
Aug 26, 2020
…a linker bug. Ref: dotnet/linker#1451 Fixes this link sdk test failure: LinkSdk.CommonLinkSdkTest [FAIL] TypeDescriptor_A7793 : System.MissingMethodException : Default constructor not found for type System.ComponentModel.DateTimeOffsetConverter at System.RuntimeType.CreateInstanceMono(Boolean nonPublic, Boolean wrapExceptions) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean skipCheckThis, Boolean fillCache) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at System.ComponentModel.ReflectTypeDescriptionProvider.CreateInstance(Type objectType, Type callingType) at System.ComponentModel.ReflectTypeDescriptionProvider.SearchIntrinsicTable(Hashtable table, Type callingType) at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetConverter(Object instance) at System.ComponentModel.ReflectTypeDescriptionProvider.GetConverter(Type type, Object instance) at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetConverter() at System.ComponentModel.TypeDescriptor.GetConverter(Type type) at LinkSdk.CommonLinkSdkTest.TypeDescriptor_A7793() in /Users/rolf/work/maccore/whatever/xamarin-macios/tests/linker/CommonLinkSdkTest.cs:line 21 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
spouliot
pushed a commit
to spouliot/xamarin-macios
that referenced
this issue
Mar 31, 2021
… due to a linker bug." This reverts commit dea6580. This was fixed a while ago dotnet/linker#1451 -> dotnet/runtime#41390
dalexsoto
pushed a commit
to dotnet/macios
that referenced
this issue
Apr 2, 2021
… due to a linker bug." (#11054) This reverts commit dea6580. This was fixed a while ago dotnet/linker#1451 -> dotnet/runtime#41390 Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com>
tj-devel709
pushed a commit
to dotnet/macios
that referenced
this issue
Apr 7, 2021
… due to a linker bug." (#11054) This reverts commit dea6580. This was fixed a while ago dotnet/linker#1451 -> dotnet/runtime#41390 Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Test project: consoleapp-195d28e.zip
Repro: run
make linked
, which passes/p:PublishTrimmed=true /p:TrimMode=link
todotnet build
:Running
make notlinked
(which does not pass/p:TrimMode=link
todotnet build
, but it still passes/p:PublishTrimmed=true
)shows the type converters exist then:The text was updated successfully, but these errors were encountered: