Bug 29681 - Mono linker fails
Summary: Mono linker fails
Alias: None
Product: Tools
Classification: Mono
Component: other ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-05-03 09:08 UTC by Grigory (Playtika)
Modified: 2015-05-20 05:50 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Grigory (Playtika) 2015-05-03 09:08:17 UTC
I have and app written against .net, and i try to use mono linker to strip some unused code. 

monolinker -o linked -x E:\Linker.xml -c skip -d "C:/Windows/Microsoft.NET/Framework/v4.0.30319/" 

Error is following:

Failed to resolve System.Void System.Xml.Serialization.XmlTypeConvertorAttribute::.ctor(System.String)

Seems this is a some mono-specific attribute that is definitely used by my code (i target .net 4.5).

Mono JIT compiler version 4.0.1 (Visual Studio built mono)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           normal
        SIGSEGV:       normal
        Notification:  Thread + polling
        Architecture:  x86
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen
Comment 1 Grigory (Playtika) 2015-05-03 09:08:52 UTC
that is defininely *NOT* used by mode code. Sorry
Comment 2 Grigory (Playtika) 2015-05-03 09:33:42 UTC
Okay, added -a App.exe and now everything works perfectly. My fault.

BTW, funny issue, if i have bad type names with > or < mono crashes without any useful info.

    <type fullname="SM.Shared.Payments.Service.PaymentFactory&lt;InAppPurchases.IOS.IOSPurchase&gt;" />