问题
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