Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Having problems building my Setup Proyect??
 

Having problems building my Setup Proyect??

Hi!

At the time that I'mbuilding my Setup Proyect I have a 8 warnings saying Two or more objects have the same target location?? and one error saying Unrecoverable build error??

I don't know what to do beacuse I can not find the error. Please help me if you have seen something like this before because I want to run my application in another computer....

Regards!!!

VictorSalcedo  Tuesday, October 24, 2006 2:55 PM

I had that problem...

Dependancies of my project output had dependancies themselves; and the setup project will recurse until it has all related dependancies... however, when these recursed dependancies conflict dosen't do anything about it.

So, the solution is to simply add in the references to all possible projects (or assemblies) which may get automatically included to the projects being added to the setup project.

Hope this helps!

r3n  Friday, November 24, 2006 10:37 PM

Can you post the actual build messages?

Can you confirm that this is on VS2005?

Aaronru - MSFT  Monday, October 30, 2006 10:14 PM

Let's start with the "Two or more objects..." error messages. When those go away, we can look at the unrecoverable build error.

Basically, that error is saying that your setup is authored so there are files in the same folder with the same name. Usually, you can double-click on the error message and it will take you to one of them.

One way that can happen is if you add Project Output Groups from multiple projects that have the same dependencies. You can get multiple copies of the dependencies that way. If you go to the folder that has the multiple files, you should be able to select a copy and exclude them... or try the detected dependencies folder.

Some ways you can track this down would be to select an assembly and go to the property grid and open teh "dependencies" object. This way you can see which dependencies an assembly is bringing in. You can also go to a Project Output Group and check the "dependencies" properties or the "outputs" property, which lists the files in the project output group.

Really, once you figure out why you have multiple files of the same name in the same folder, we can find the best way to clean it up.

Good luck, hope this helps.

David Guyer MSFT  Tuesday, October 31, 2006 6:24 AM

I had that problem...

Dependancies of my project output had dependancies themselves; and the setup project will recurse until it has all related dependancies... however, when these recursed dependancies conflict dosen't do anything about it.

So, the solution is to simply add in the references to all possible projects (or assemblies) which may get automatically included to the projects being added to the setup project.

Hope this helps!

r3n  Friday, November 24, 2006 10:37 PM

Another way to handle that problem would be to exclude one copy of each dependency, so that only one is getting deployed.

David Guyer MSFT  Wednesday, November 29, 2006 10:35 PM
Indeed. But personally, sometimes I find that this causes problems with custom actions if the files are depended on in that way.
r3n  Thursday, November 30, 2006 2:17 PM

I'm still having this problem but now only with the one that says:

“Unrecoverable Build Error�..

I found this question posted in another thread but It didn't work I think because it was made for VS2003 and I'm using VS2005.

Q: I’m getting an “Unrecoverable Build Error�building a setup project.

A: http://support.microsoft.com/?id=329214

The project is very simple right now as a test just make a setup ofa Form with one button clicked and show a message that's all......

PLEASE help me with this issue I have used another computer without this problem but I need to use the onw that is Failing with this error.

VictorSalcedo  Tuesday, July 31, 2007 8:02 PM

You can use google to search for other answers

Custom Search

More Threads

• deploy without GAC
• User interface editor question in Visual Studio 2005 setup project
• How to automate the ClickOnce deployment
• Publish ClassLibrary Project
• COM server not registered
• SignCode CMD Line nolonger working with new cert from VeriSign
• Forgot Password to Expired Certificate
• Click once publish version
• .NET 1.1 or 2.0 ?!
• Stopping and Starting Services