嗨!我们有Windows诊断应用程序,我们已经实现了蓝牙功能。我们在Windows.winmd的帮助下编写了我们的代码。和System.Runtime.WindowsRuntime.dll。但是这些库不是.NET经典的。我们发现这个DirectWindowsWinmd.Net NuGet包实现了这两个依赖项进入包文件夹(不在WindowsKits文件夹中)的目标。我们问题的第一部分已经解决了。下一步是正确构建MSI项目。现在添加此依赖项后,我有下一个错误:
错误:验证时发生错误。 HRESULT ='80070057' 错误:验证时发生错误。 HRESULT ='80070057'
你能帮我解决这个问题吗?
这只会在添加这些依赖项后发生。有可能解决这个问题吗?谢谢!
解决方案
Hello Kyrylo_antoshyn,
看起来您有一个桌面项目要添加UWP API支持,对吧?它是一个WPF项目吗?你是如何创建自己的msi的?错误80070057表示"一个或多个参数无效",在我们知道您的创建MSI包的步骤之前没有用。
还检查了桌面桥技术,你真的想在创建MSI包之后转换成UWP包吗?
祝你好运,
Barry
Hi! We have Windows diagnostic application and we've already implemented bluetooth feature. We wrote our code with the help of Windows.winmd and System.Runtime.WindowsRuntime.dll. But these libraries are not .NET classic. We found this DirectWindowsWinmd.Net NuGet package to achieve the goal that this two dependencies were into package folder (not in WindowsKits folder). First part of our problem was solved. The next one is to build MSI project correctly. After adding this dependencies now I'm having the next errors:
ERROR: An error occurred while validating. HRESULT = '80070057' ERROR: An error occurred while validating. HRESULT = '80070057'
Could you help me to deal with this?
This only occurs after adding this dependencies. Is it possible to resolve this problem? Thank you!
解决方案Hello Kyrylo_antoshyn,
It looks like that you have a desktop project which you want to add UWP API support, right? Is it a WPF project? How did you create your msi? The error 80070057 means "One or more arguments are invalid", that is not helpful before we know your steps to create the MSI package.
Also have you checked the desktop bridge technology, do you actually want to convert to a UWP package after you have create your MSI package?
Best regards,
Barry
更多推荐
无法构建MSI项目,因为UWP依赖项:Windows.winmd和System.Runtime.WindowsRuntime.dll
发布评论