错误:验证时发生错误.HRESULT = '80070057' [英] Error: An error occurred while validating. HRESULT = '80070057'

查看:38
本文介绍了错误:验证时发生错误.HRESULT = '80070057'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用Microsoft Visual Studio 2017 安装程序项目"创建 .exe 文件时收到此错误消息.

I'm having this error message when I try to make an .exe file with "Microsoft Visual Studio 2017 Installer Projects".

我阅读了有关此错误的所有帖子,但没有任何帮助.从安装/重新安装开始,并尝试找到一个带有临时 ASP.Net 文件的文件(直到最后都找不到它们).

I read all the post on this error, but nothing helped. Starting with Install/reinstall and finish with trying to find a file with Temporary ASP.Net files (could not find them till end).

此外,我在 2 台 PC 和一台笔记本电脑上尝试了一个基本的Hello world"项目.但我得到了同样的错误.该项目是用 C# 和 XAML 编写的.

Also, I tried it with a basic "Hello world" project on 2 PCs and one notebook. But I got the same error. The project is written in C# and XAML.

如何修复这个错误?
任何帮助将不胜感激.

How to fix this error?
Any help will be appreciated.

推荐答案

Microsoft Visual Studio 2017 安装程序项目不适用于 UWP 应用程序.它们旨在与常规(经典)桌面应用程序(如 WPF、Winforms、MFC 等)一起使用.您无法为 UWP 应用构建传统安装程序.

Microsoft Visual Studio 2017 Installer Projects are not applicable to UWP applications. They are intended to be used with regular (classic) desktop applications (like WPF, Winforms, MFC, etc.). You can't build a traditional installer for a UWP app.

如果您正在构建 UWP,您应该使用 APPX 包作为您的安装程序技术.

If you are building a UWP you should be using APPX packages as your installer technology.

如果您需要传统的 .msi/setup.exe,那么您需要切换到开发常规桌面应用程序,例如 WPF.

If you need a traditional .msi/setup.exe then you will need to switch to developing a regular desktop app, like WPF.

这篇关于错误:验证时发生错误.HRESULT = '80070057'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆