Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2015 - Visual Studio Installer: No dependencies detected & won't build

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

like image 881
Sonic1015 Avatar asked Nov 25 '16 15:11

Sonic1015


People also ask

How do I get dependencies in Visual Studio?

Add a new dependency diagram to a modeling project NET Core projects are supported starting Visual Studio 2019 version 16.2. On the Architecture menu, choose New Dependency Diagram. Under Templates, choose dependency diagram. Name the diagram.

How do I fix Visual Studio installer has stopped working?

Please remove the folder: C:\Program Files (x86)\Microsoft Visual Studio\Installer. Then, re-download the bootstrapper file from the following Microsoft Site and run it as administrator.


1 Answers

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.

like image 199
gotorg Avatar answered Oct 19 '22 19:10

gotorg