Reputation: 75
Trying to create a setup project in Visual Studio 2015. When I add my main project, no dependencies are added; not my other projects (dll's), no Nuget packages, not even the .Net Framework.
I did try adding those project dll's manually, but whether I do or don't, I get this build error every time:
------ Starting pre-build validation for project 'ProjectInstaller' ------
ERROR: An error occurred while validating. HRESULT = '80070057'
------ Pre-build validation for project 'ProjectInstaller' completed ------
Of note, this error only appears in the output, not the error list. So any ideas why the dependencies are not added? Why the build is failing? What does that error code even mean?
(As an afterthought, I have successfully built an install file on a different solution set altogether; I'm thinking maybe it's some setting in my project properties).
Upvotes: 9
Views: 1407
Reputation: 147
I had a .NET 4.5 application with a setup project that gave this error while the application was using the 'Windows.Data' reference (at: C:\WINDOWS\System32\WinMetadata\Windows.Data.winmd), even though the application was able to compile. Once removing that reference, the setup project was able to build.
Upvotes: 1
Reputation: 1496
I researched a bit on you problem. I found similar situation that is similar to you . try these links
Upvotes: 0