我有Xamarin.Android
利用PCL
支持和Xamarin.Insights
组件的应用程序。不幸的是,在带有链接器选项的发布配置中,SDK Assemblies
它不会构建。如果我禁用链接器一切正常,但我需要发布配置的链接器。
(PackageForAndroid) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets (_LinkAssemblies target) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Error executing task LinkAssemblies: error XA2006: Reference to metadata item 'System.Void Xamarin.Insights::Initialize(System.String)' (defined in 'MyApp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') from 'MyApp.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved.
: error : Error building target _LinkAssemblies: Object reference not set to an instance of an object
MyApp.Android/MyApp.Android.csproj: error : Object reference not set to an instance of an object
请指教。