我有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
请告知。