Anthony Mastrean
Anthony Mastrean

Reputation: 22394

Setup project not installing referenced project content files

I have a Windows Service project, A, with a dependency on a class library project, B. Project B has XML files set as Content, Copy if newer. In the bin\Debug folder of project A, these content files are successfully copied.

Edit (more failure):

The Primary output installs fine. I cannot get the Content Files to install.

Edit (win):

I had it all wrong, I have Primary Output from Project A and added a custom action to install it because it's the service exe. Content files from Project B simply have to be included in the setup project... not "installed" as a custom action.

Upvotes: 2

Views: 2867

Answers (1)

Grant
Grant

Reputation: 12049

I think so, yes. When I use the setup project, I have to explicitly reference Project A's Primary output and content files, as well as all of Project B's DLL files.

Upvotes: 3

Related Questions