Click here to Skip to main content
12,405,270 members (62,883 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ClickOnce VS2012
I have one main project referencing an other project. The referenced projects output is successfully copied to the output folder bin/debug. However, for my clickonce deployment the content files in the referenced project is not included, only the DLL files. The content files in the the main project is successfully included in the deployment.

Please help my to fix this envying issue.

The workaround is obviously to include the same files in both projects, but come on!
Posted 13-Feb-13 18:21pm
Updated 14-Feb-13 0:29am
v2
Comments
Richard MacCutchan 14-Feb-13 5:22am
   
Why do you need the resource files? If they contain resources that are used in the first project then they will have been incorporated into the DLL (assuming you built it correctly).
Jon Andersson 14-Feb-13 6:28am
   
My bad, it should be content files. I supply a compact database file. That is not working well inside a assembly.
Richard MacCutchan 14-Feb-13 6:44am
   
Sorry, I don't understand what you are saying.
Jon Andersson 14-Feb-13 7:23am
   
In one on my project in the solution there is a sql compact file. This needs to be suppled in the deployment of the project. When I reference the project and run it locally in visual the file is copied to the right place in the start-up project. However when then the project is deployed with clickones the content files is not supplied only the dll file. Only content files from the startup project is supplied in the clickones installation
Richard MacCutchan 14-Feb-13 7:35am
   
Then I guess you need to move that file into the startup project, or find an option that will include it.
Mike Meinz 14-Feb-13 9:56am
   
For ClickOnce Deployment, you have to add the "compact database file" to the project to be deployed. ClickOnce Deployment requires that all files to be deployed be declared and present within the project.
Jon Andersson 14-Feb-13 10:47am
   
Add that as a solution instead of a comment and I give you cred. Thank you for the sad clear answer.

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

For ClickOnce Deployment, you have to add the "compact database file" to the project to be deployed. ClickOnce Deployment requires that all files to be deployed be declared and present within the project.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100