当UWP解决方案包含Windows运行时组件(C#)时,WACK失败(WACK fails when UWP solution includes Windows Runtime Component (C#))
我的UWP-app(C ++ XAML / DirectX)正在使用Windows运行时组件(C#)(*)
Windows应用程序证书套件“支持的API测试”失败,错误(**)表明我应该激活.net native。 如果是这样的话我怎么能把WRC编译成本机? WRC项目没有涉及.net native的任何选项,我的项目是C ++应用程序,它也没有关于.net native的任何选项。
注意:
- 我的应用程序有效,包括WRC的功能。
- 没有WRC我的应用程序通过了WACK。
(*)我使用的WRC是https://www.nuget.org/packages/NotificationsExtensions.Win10/
(**)我得到的错误:
- 此应用程序类型不支持uwphost.dll中的API ExecuteAssembly。 UWPShim.exe调用此API。
- 此应用程序类型不支持uwphost.dll中的API DllGetActivationFactory。 UWPShim.exe具有转发到此API的导出。
- 此应用程序类型不支持api-ms-win-core-synch-l1-1-0.dll中的API OpenSemaphore。 System.Threading.dll调用此API。
- 此应用程序类型不支持api-ms-win-core-kernel32-legacy-l1-1-0.dll中的API CreateSemaphore。 System.Threading.dll调用此API。
编辑:我使用Windows 10,Visual Studio 2015 Update 3和最新的Windows 10 SDK(版本号是10.0.14393.33)
My UWP-app (C++ XAML/DirectX) is using Windows Runtime Component (C#) (*)
Windows App Cert Kits "Supported API Test" fails with error (**) that suggests i should activate .net native. If that is the case how do i can compile WRC to native? WRC project don't have any options involving .net native and my project is C++ app which is also lacks any options regarding .net native.
Note:
- My app works, including functionality by WRC.
- Without WRC my app passes WACK.
(*) WRC that i use is https://www.nuget.org/packages/NotificationsExtensions.Win10/
(**) Error that i got:
- API ExecuteAssembly in uwphost.dll is not supported for this application type. UWPShim.exe calls this API.
- API DllGetActivationFactory in uwphost.dll is not supported for this application type. UWPShim.exe has an export that forwards to this API.
- API OpenSemaphore in api-ms-win-core-synch-l1-1-0.dll is not supported for this application type. System.Threading.dll calls this API.
- API CreateSemaphore in api-ms-win-core-kernel32-legacy-l1-1-0.dll is not supported for this application type. System.Threading.dll calls this API.
Edit: I use Windows 10, Visual Studio 2015 Update 3 with latest Windows 10 SDK (version number is 10.0.14393.33)
原文:https://stackoverflow.com/questions/38987261
最满意答案
看起来它是由View背景颜色和背景的alpha(透明度)属性以及浅蓝色部分引起的。
因此,在
XCode
IB
检查背景颜色(您设置的颜色,或默认情况下的颜色),将其设置为您喜欢的值(比如白色),并确保将alpha设置为1It looks like it's caused by the View background color, and the alpha (transparency) property of the background and the light-blue parts.
So, in
XCode
IB
check the background color (the one you set, or the one by default), put it to the value you like (say White), and make sure the alpha is set to 1
相关问答
更多-
我确认问题与https://developer.xamarin.com/guides/ios/troubleshooting/questions/error-mscorlib-not-found/有关 我的档案上传到了我自己的公司。 Owncloud客户端不会上传隐藏的文件/文件夹(例如.monotouch-32和.monotouch-64 ),因此客户收到的xarchive不同且更小,并且不包含所有引用。 我希望这有助于其他人解决这个问题。 I confirm issue was related to h ...
-
解。 将XCode 4.63安装到〜/ Applications中的新文件夹中。 将Xamarin首选项中的Apple SDK更改为该位置 构建并且您将获得旧样式,以便您可以维护旧应用程序,直到准备好迁移它们 Solution. Install XCode 4.63 into a new folder in ~/Applications. Change the Apple SDK in Xamarin Preferences to that location Build and you'll get the ...
-
XCode 5和iOS 6和7(XCode 5 and iOS 6 and 7)[2022-02-20]
XCode 4.6无论如何都不支持iOS 7。 您将只能构建将在iOS 7上运行的iOS 6应用程序,但您将无法使用新的iOS 7 SDS功能。 如果您想支持iOS 7功能,则需要使用Xcode 5.这可能还会在您的应用中引起一些视觉问题。 我的建议是迁移到Xcode 5,然后检查你的应用程序中的所有内容是否正常,或者进行必要的更改以便在iOS 7上正常运行。 在任何情况下,如果您发现任何事情都无法按预期运行,您可以安全地从Xcode 5返回到Xcode 4。 XCode 4.6 will not supp ... -
更新Xamarin和Xcode后,无法在iOS设备上运行应用程序(After updating Xamarin and Xcode, failing to run app on iOS device)[2023-09-29]
您可以在这篇文章中尝试这些建议(我看到至少有两个不同的建议): 只需右键单击xib并在IB中打开它。 然后我转身并在IB中将其关闭,这让我超越了错误。 和 确保info.plist中的'Main Interface'为空。 删除Bin和Obj文件夹。 您也可以尝试通过转至/Users//Library/Caches/Xamarin/mtbs/删除Mac上的构建缓存,然后删除与您的解决方案同名的文件夹(可能有2个) ,名称中包含iOS ,删除两者)。 重建解决方 ... -
从Xamarin Studio打开时如何阻止Xcode关闭(How to stop Xcode from closing when opened from Xamarin Studio)[2022-07-14]
这种行为在11月左右/之后发生了变化(在被问到这个问题之后),所以这不应该再发生了。 如果您仍然看到这种情况,请与我们联系。 This behaviour was changed in/around November time (after this question was asked) so this should not be happening anymore. Please get in touch if you are still seeing this happen. -
Xcode和Xamarin之间的IOS 7链接无法正常工作(IOS 7 link between Xcode and Xamarin not working correctly)[2023-08-24]
看起来它是由View背景颜色和背景的alpha(透明度)属性以及浅蓝色部分引起的。 因此,在XCode IB检查背景颜色(您设置的颜色,或默认情况下的颜色),将其设置为您喜欢的值(比如白色),并确保将alpha设置为1 It looks like it's caused by the View background color, and the alpha (transparency) property of the background and the light-blue parts. So, in X ... -
您需要在Mac上运行Xcode以构建适用于iOS的Xamarin应用程序。 在Visual Studio上安装Windows Xamarin将允许您连接到mac以远程执行构建,但是您仍然需要一个安装了Xcode的mac来进行构建。 您可以从Mac App Store下载Xcode。 如果您要在那里发布最终包,您还需要使用mac将最终包上传到iOS App Store。 另一个选择是使用基于云的Mac服务器,有几家公司为此目的每小时/每月租用它们( MacinCloud是我听说过的)。 You need to ...
-
UIActivityIndicator无法正常使用Xamarin IOS(UIActivityIndicator is not working correctly Xamarin IOS)[2021-12-05]
您正在阻止UI线程,这将阻止您想要对UI进行的更改生效(在本例中为UIActivityIndicator旋转动画)。 执行此操作的最佳方法是使用async / await,如: aiReceive.StartAnimating(); await YourFTPRequestAsync(); aiReceive.StopAnimating(); 以下是有关async \ await的官方MSDN文档以及有关其工作原理的示例驱动提示 You're blocking the UI thread, and t ... -
没有.Xccode无法读取使用Xamarin构建的软件包。 No. Xccode cannot read a package built with Xamarin.
-
现在没办法做你所要求的,不像Unity3D导出一个库,Xamarin在编译结束时提供了一个ipa。 您可以回收故事板并将您的.cs移植到.swift或.h .m。 There is no way right now to do what you ask, unlike Unity3D that exports a library , Xamarin provides an ipa at the end of the compilation. You can recycle your storyboards ...