我正在使用Visual Studio Update 3 + Update 3修补程序。我创建了一个空白XAML应用程序(Xamarin.Forms便携式)解决方案使用C#跨平台模板。我在配置管理器中检查了构建和部署。我已经更新了解决方案Xamarin.Forms 2.3.2.127(2.2版本有同样的问题)。到目前为止,我已经能够运行Android和iOS应用程序。我没有修改源代码,我正在使用空的项目。当试图运行UWP应用程序,我在App.xaml.cs得到一个错误:Xamarin UWP应用程序不起作用
Xamarin.Forms.Forms.Init(e)
System.AggregateException: One or more errors occurred.
(Error HRESULT E_FAIL has been returned from a call to a COM component.) --->
System.Runtime.InteropServices.COMException:
Error HRESULT E_FAIL has been returned from a call to a COM component.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at Xamarin.Forms.Platform.UWP.WindowsBasePlatformServices.GetAssemblies()
at Xamarin.Forms.Registrar.RegisterAll(Type[] attrTypes)
at Xamarin.Forms.Forms.Init(IActivatedEventArgs launchActivatedEventArgs, IEnumerable`1 rendererAssemblies)
at Tester.UWP.App.OnLaunched(LaunchActivatedEventArgs e)
---> (Inner Exception #0) System.Runtime.InteropServices.COMException (0x80004005):
Error HRESULT E_FAIL has been returned from a call to a COM component.
我正在使用空白XAML应用程序(Xamarin.Forms便携式)解决方案使用C#跨平台没有添加代码。 UWP项目在Xamarin.Forms.Forms.Init(e) –
失败您运行什么目标? Windows 10桌面 Windows 10模拟器 Windows 10移动模拟器 Windows 10移动电话 –
Windows 10桌面 –