首页 \ 问答 \ 当UWP解决方案包含Windows运行时组件(C#)时,WACK失败(WACK fails when UWP solution includes Windows Runtime Component (C#))

当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
更新时间:2022-09-07 06:09

最满意答案

看起来它是由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 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 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 ...
  • 您可以在这篇文章中尝试这些建议(我看到至少有两个不同的建议): 只需右键单击xib并在IB中打开它。 然后我转身并在IB中将其关闭,这让我超越了错误。 和 确保info.plist中的'Main Interface'为空。 删除Bin和Obj文件夹。 您也可以尝试通过转至/Users//Library/Caches/Xamarin/mtbs/删除Mac上的构建缓存,然后删除与您的解决方案同名的文件夹(可能有2个) ,名称中包含iOS ,删除两者)。 重建解决方 ...
  • 这种行为在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.
  • 看起来它是由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 ...
  • 您正在阻止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 ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)