Linker 集成了xamarin.insights的xamarin.android项目的链接器失败
我有Linker 集成了xamarin.insights的xamarin.android项目的链接器失败,linker,xamarin,xamarin.android,portable-class-library,Linker,Xamarin,Xamarin.android,Portable Class Library,我有Xamarin.Android应用程序,它利用了PCL支持和Xamarin.Insights组件。 不幸的是,在带有链接器选项的发行版配置中,SDK程序集无法生成。 若我禁用链接器,一切正常,但我需要链接器进行发布配置 (PackageForAndroid) -> /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets (_LinkAssembli
Xamarin.Android
应用程序,它利用了PCL
支持和Xamarin.Insights
组件。
不幸的是,在带有链接器选项的发行版配置中,SDK程序集
无法生成。
若我禁用链接器,一切正常,但我需要链接器进行发布配置
(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
请告知