无法构建MSI项目,因为UWP依赖项:Windows.winmd和System.Runtime.WindowsRuntime.dll

编程入门 行业动态 更新时间:2024-10-24 18:25:20
本文介绍了无法构建MSI项目,因为UWP依赖项:Windows.winmd和System.Runtime.WindowsRuntime.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨!我们有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

本文发布于:2023-11-06 06:26:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562930.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   Windows   UWP   MSI   winmd

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!