Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

ClickOnce Content Files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DCDev - 06 Jul 2007 19:36 GMT
I have a solution with multiple projects.  One project is a
windows forms project.  I have report files (.rdlc) in a separate
project that are built as "Content" with the "Copy Always" option.
When I build the solution, these files are copied to the bin\Release
directory, as they should be.  However, when I publish the Windows
Forms project, these content files are not copied.  How can I make it
so that these content files from the one project are published along
with the windows forms project.

    They are not listed in the "Applications Files" section of the
publish settings.

Thank you...
Mark S. Milley, MCSD (BinarySwitch) - 06 Jul 2007 22:06 GMT
Hi -

I know this is a bit backwards, but have you tried adding them as a
resource?

BTW, unless you really need it, and/or have a very small application
that is going to be updated frequently, in my experience I have found
that it's better to stay away from ClickOnce; it adds too many
additional factors to the equation. I have a lot of complaints about
how Click Once works (or doesn't work, IMHO)--the foremost being, why
did MS make the install directory completely different, not to mention
unpredictable, thereby veering away from it's own standard?
(primarydrive:\program files\vendor\application) Installing an
application into the Documents and Settings folders is just completely
against everything that they have been doing since 95...

Good Luck,

-Mark
nospam - 10 Jul 2007 03:19 GMT
What do u use instead of ClinkOnce?
Windows Installer?

> Hi -
>
[quoted text clipped - 15 lines]
>
> -Mark
RobinS - 11 Jul 2007 05:26 GMT
Are the files in the same folder as the project? Try putting them in a
subfolder under the project, and then publishing them. If you have them
marked as content, with Copy Always, it will put them in subfolder with the
same name in the bin\Release\ folder.

My company is successfully using ClickOnce to deploy its application, and
we include a lot of files this way w/no problem.

The only difference I see is that ours are in a folder under the project
that is the main UI. So you might need to move them over there if the above
doesn't work.

Robin S.
----------------------------------------

>     I have a solution with multiple projects.  One project is a
> windows forms project.  I have report files (.rdlc) in a separate
[quoted text clipped - 9 lines]
>
> Thank you...
DCDev - 11 Jul 2007 13:53 GMT
That's what I ended up doing.  I moved them into the main project.
This may cause some issues down the road because I wanted to use these
reports in two separate projects (that's why I had the reports in
their own project, so it could be used by two other projects).  Now,
with this approach, I'll have to duplicate the reports in each of the
"main" projects.  I don't understand why you can build an entire
solution but only publish individual projects.

Thank you all for your responses.

> Are the files in the same folder as the project? Try putting them in a
> subfolder under the project, and then publishing them. If you have them
[quoted text clipped - 24 lines]
>
> > Thank you...
Gigasoft - 11 Jul 2007 15:27 GMT
Hi,

I've heard from a few this is a good tool to better understand clickonce.

http://www.code-magazine.com/Article.aspx?quickid=0611041

best regards,

Robert Dede

www.gigasoft.com

> That's what I ended up doing.  I moved them into the main project.
> This may cause some issues down the road because I wanted to use these
[quoted text clipped - 36 lines]
>>
>> > Thank you...
RobinS - 12 Jul 2007 18:29 GMT
YOu could also include them as Data files, which there's a special folders
path to get to -- it copies them to the DataDirectory each time you install
it. And if the data files don't change, when the user picks up incremental
updates, it will copy the old files forward to the new version. If the
files DO change, it makes the old ones available (I think it copies them
forward into a .\pre folder or something like that -- let me know if you
really want to know, and I'll look it up) and you can programmatically
access the old versions if you need to. This is how you could deploy
SQLServer CE database, for example. You would have migration code that is
run when the application updates its version that copies data from the old
database to the new one.

There is an excellent book on ClickOnce by Brian Noyes. It helped me
immensely -- it covers everything from including files to security to
certificates to including prerequisites with the Bootstrapper. Very
helpful.

Robin S.
--------------------------
> That's what I ended up doing.  I moved them into the main project.
> This may cause some issues down the road because I wanted to use these
[quoted text clipped - 37 lines]
>>
>> > Thank you...
JR - 11 Jul 2007 16:54 GMT
Wow.  I did a search on "ClickOnce" and the first article that came up (this
one) is the one that applies to me.

In my case, I have Reports Project that uses Crystal Reports which are not
getting included in the installation.

I'm praying there is a better solution out there than the ones suggested.  I
don't want to retool the app by putting them in a resource file...nor would I
want to duplicate the reports in the projects just so the ClickOnce will
include them.

Can someone please enlighten me on a better way to include important files
from dependent projects?

>      I have a solution with multiple projects.  One project is a
> windows forms project.  I have report files (.rdlc) in a separate
[quoted text clipped - 9 lines]
>
> Thank you...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.