Error: An error occurred while validating. HRESULT = '80070057'

大憨熊 提交于 2020-01-05 05:59:07

问题


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

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).

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.


回答1:


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.

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

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



来源:https://stackoverflow.com/questions/52838452/error-an-error-occurred-while-validating-hresult-80070057

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!