Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 19:21pm
Edited 14-Feb-13 1:29am
v2
Comments
Richard MacCutchan at 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 at 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 at 14-Feb-13 6:44am
   
Sorry, I don't understand what you are saying.
Jon Andersson at 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 at 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 at 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 at 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
0 OriginalGriff 385
1 Sergey Alexandrovich Kryukov 329
2 CPallini 270
3 DamithSL 214
4 Maciej Los 192
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2014
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