472,969 Members | 1,659 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,969 software developers and data experts.

Additional files not included when publish solution

VB2005 Express.
I am developing a solution that involves a windows forms application and a
number of class library projects (DLLs). Some of the DLLs require extra data
files or third party dlls. I can include additional non-source files in my
projects, but these are not always automatically included when I publish the
application. It seems that files included in the main application project
are included, but any files that I add to other projects in the solution are
not automatically added.
Is there a way of specifying that these files are required when referencing
another project? Using the Setup and Deployment wizard in VB6 I could
generate dependency files, then it would know that when it included the DLL
it would also have to include the additional files. Is there an equivalent
feature in .NET?
If not, is it possible to specify additional files to include without
actually adding them all to the main project?
When I click on 'Application Files' in the publish screen, it allows me to
choose to exclude files that have been automatically added, but there is no
option that I can see to add additional files that it has not picked up.
TIA
Phil
Oct 29 '07 #1
10 6524
Phil,

Be aware that the Express version is first created as a scolar tool, however
without much use restriction (I don't even know one, however before I forget
some). You cannot compare that with by instance VB6, which never has been in
a free version.

What your ask is standard in all payed versions of Visual Studio.

Cor

Oct 29 '07 #2
Hi Phil,

Based on my understanding, you have a WinForm application and a number of
Class Libray projects which contains some data files. When you publish the
WinForm application via ClickOnce, you'd like to include these data files
of the Class Library projects in the ClickOnce deployment package. If I'm
off base, please feel free to let me know.

As you said, the data files of the WinForm application would be included in
the ClickOnce deployment package automatically, but the data files of the
Class Library projects won't be included in the deployment package
automatically and there's even no way to add these data files to the
deployment package.

I would say that the above behavior is by design. If we'd like to include
data files to a ClickOnce deployment package, we have to add them to the
WinForm application project first.

If you have any concern, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 30 '07 #3
>
Based on my understanding, you have a WinForm application and a number of
Class Libray projects which contains some data files. When you publish the
WinForm application via ClickOnce, you'd like to include these data files
of the Class Library projects in the ClickOnce deployment package. If I'm
off base, please feel free to let me know.
That is the issue precisely, yes.
>
As you said, the data files of the WinForm application would be included
in
the ClickOnce deployment package automatically, but the data files of the
Class Library projects won't be included in the deployment package
automatically and there's even no way to add these data files to the
deployment package.
Correct.
>
I would say that the above behavior is by design.
This seems unlikely to me.
I can understand if this is just an ommission due to a bug, or because it
was not thought about in the design process. I can also understand if this
has been deliberately disabled in the Express edition. However, I cannot
believe that anyone would deliberately make a decision that this should not
be implemented, because they think it is more desirable to force developers
to put all data files into a single project.
If we'd like to include
data files to a ClickOnce deployment package, we have to add them to the
WinForm application project first.
That appears to be the case, and is obviously undesirable, especially once
you start getting a number of projects within a solution.
>
If you have any concern, please feel free to let me know.
My concern is that if this feature is not available, we basically have to
manually manage all project dependencies. This is a backward step. In the
VB6 Package and Deployment wizard there was a mechanism to automatically
determine these dependencies for you. In addition it means that if you have
more than one solution sharing one or more projects, you would have to
include all these dependent files in the main project of both solutions,
when the obvious and logical place for them is in the actual projects that
need them. This could result in a lot of unnecessary duplication of files,
and lead to all sorts of version control issues.
>
Sincerely,
Linda Liu
Microsoft Online Community Support

Oct 30 '07 #4

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:B6**********************************@microsof t.com...
Phil,

Be aware that the Express version is first created as a scolar tool,
however without much use restriction (I don't even know one, however
before I forget some). You cannot compare that with by instance VB6, which
never has been in a free version.
I realise this, but for the most part the Express edition provides the
functionality I need.
I am seriously considering upgrading to a payed-for version, but have not
yet decided whether we need the standard or professional edition.
>
What your ask is standard in all payed versions of Visual Studio.
I thought that might be the case. How does it work in the standard edition?
Are data files within individual projects automatically included when the
main project is published?
Is there an option from within the publish screen to add additional files at
this point?

Cheers,
Phil..
Oct 30 '07 #5
Thankyou very much to both Linda and Cor for your replies. However your
answers appear to be contradicting each other. I would be very grateful if
someone with access to the standard edition of VB2005 could test this for me
to confirm this one way or the other. To reproduce the problem create a
Winform Application project, then add a class library project. Add the
second project as a reference in the first project, then add a data file to
the second project. Then publish the solution and see if the data file is
automatically included in the deployment package.

Cheers,
Phil.
Oct 30 '07 #6
Phil,

IIn the payable version are Deployment projects included. That makes an
installer project which you can add to your solution.

With that you can create a complete deployment set in a MSI file.

Here a link about the differences in versions.

http://msdn2.microsoft.com/en-us/vstudio/aa700921.aspx

Cor

Oct 30 '07 #7

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:3A**********************************@microsof t.com...
Phil,

IIn the payable version are Deployment projects included. That makes an
installer project which you can add to your solution.

With that you can create a complete deployment set in a MSI file.
OK. I understand. The 'ClickOnce' system works the same, but there is an
alternative deployment system available. That makes sense.
>
Here a link about the differences in versions.

http://msdn2.microsoft.com/en-us/vstudio/aa700921.aspx
Thanks, I think I've seen this already, but I'll take another look.

Cheers,
Phil.
Oct 31 '07 #8
Here a link about the differences in versions.
>>
http://msdn2.microsoft.com/en-us/vstudio/aa700921.aspx
Thanks, I think I've seen this already, but I'll take another look.
There are a few things that would be useful in the standard and professional
editions, but the vast majority of what I need is available in the express
edition. I know it's not all that expensive, but it seems silly to pay out
for stuff we don't really need. I think we will may wait until VS2008 is
released. Do you know if there is an equivalent of the above comparison for
the new version? I couldn't find it on the MS site.
Oct 31 '07 #9
There are a few things that would be useful in the standard and
professional editions, but the vast majority of what I need is available
in the express edition. I know it's not all that expensive, but it seems
silly to pay out for stuff we don't really need. I think we will may wait
until VS2008 is released. Do you know if there is an equivalent of the
above comparison for the new version? I couldn't find it on the MS site.
I would have told you

:-)

Cor

Nov 1 '07 #10

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:E5**********************************@microsof t.com...
>There are a few things that would be useful in the standard and
professional editions, but the vast majority of what I need is available
in the express edition. I know it's not all that expensive, but it seems
silly to pay out for stuff we don't really need. I think we will may wait
until VS2008 is released. Do you know if there is an equivalent of the
above comparison for the new version? I couldn't find it on the MS site.
I would have told you

:-)
OK. Thanks :-)
Nov 2 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ronald S. Cook | last post by:
Hi all, We've created a VS2005 Windows application. We're using "ClickOnce" that's built in to deploy the app. However, we want to also send with the install a folder of data files that...
1
by: moondaddy | last post by:
I have a sample vb .net 2.0 winforms app and am using Oneclick deployment to a remote server. All of the files (DLLs, EXEs, manifests, configs, etc.) seem to get deployed to the target folder on...
2
by: AAJ | last post by:
Hi all I have a few questions about file locations with VS2005, localhost WidowsXP and remotehost Server2003, and I wonder if anyone can help me get started 1) If I build a web site on my...
3
by: Steve Teeples | last post by:
I have a simple application built with several DLLs that access XML files for information. My local setup works just fine. As defined in my Install folder, the files are copied to the...
3
by: Rich | last post by:
Hello, I have been using OneClick deployment to deploy apps at my workplace. Works great! But now I have to deploy additional files with the app, like chms, rtfs. How do I publish the...
11
by: mdh | last post by:
Well, K& R has finally gotten to header files!!! May I ask this. (Have checked out the FAQ) I am using "Xcode" to compile the program, so it may well be that this is doing something strange. ...
0
by: Mulm3h | last post by:
Hi when I publish my application using the publish wizard in VB 2k5 Everything works fine, but after i run through the installation of the application setup.exe. There's a folder missing which...
3
by: PokerMan | last post by:
HI When i publish my site, it overwrites all files. but when i have some large files included such as mp3s. It overwrites these and even tho i havent touched them it reuploads all of them....
5
by: DCDev | last post by:
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....
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.