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 / Languages / VB 6.0 >>> VB.NET / September 2004

Tip: Looking for answers? Try searching our database.

Using same .bas file in multiple projects (now called solutions)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Tamplin - 06 Sep 2004 16:29 GMT
Hi,
- Background
In my VB6 days I would use sub-folders to organise my projects, keeping the files (.bas, .cls etc) in a sub-folder per project
Example
\vbsource\project01  
\vbsource\project02  
...
\vbsource\project99

In addition, general purpose code (shared between projects) would go in it's own sub-folder ...

\vbsource\general

- VB.Net problem
In the VB.Net explorer, it seems that ALL the code for any project has to be in one folder. That's fine for the code that is specific to a particular project (e.g. the code I previously put in the projectNN sub-folders) but apparently I have to keep multiple copies of the general purpose code, one copy per project. So, if I fix or upgrade the general purpose code, I have to copy it to each project.

To me, this seems so wasteful that I conclude I must be doing something wrong. Any suggestions?
Thanks
Herfried K. Wagner [MVP] - 06 Sep 2004 16:47 GMT
* "John Tamplin" <jtamplin@mth.biglobe.ne.jp> scripsit:
> In the VB.Net explorer, it seems that ALL the code for any project has to be in one folder. That's fine for the code that is
> specific to a particular project (e.g. the code I previously put in the projectNN sub-folders) but apparently I have to keep
> multiple copies of the general purpose code, one copy per project. So, if I fix or upgrade the general purpose code, I have to
> copy it to each project.

Click "Add Existing Item...", select the file, and then change the
dropdown button to reference the file only and keep it in its original
location.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/

John Tamplin - 06 Sep 2004 17:33 GMT
Sorry Herfried, I don't get what you mean by "change the dropdown button to
reference the file only and keep it in its original location"

JT
> * "John Tamplin" <jtamplin@mth.biglobe.ne.jp> scripsit:
> > In the VB.Net explorer, it seems that ALL the code for any project has to be in one folder. That's fine for the code that is
> > specific to a particular project (e.g. the code I previously put in the projectNN sub-folders) but apparently I have to keep
> > multiple copies of the general purpose code, one copy per project. So,
if I fix or upgrade the general purpose code, I have to
> > copy it to each project.
>
> Click "Add Existing Item...", select the file, and then change the
> dropdown button to reference the file only and keep it in its original
> location.
John Tamplin - 07 Sep 2004 15:55 GMT
Apologies, I got it now. (Late night, insufficient coffee!)
Thanks for your help.
JT

> Sorry Herfried, I don't get what you mean by "change the dropdown button to
> reference the file only and keep it in its original location"
[quoted text clipped - 12 lines]
> > dropdown button to reference the file only and keep it in its original
> > location.
Herfried K. Wagner [MVP] - 07 Sep 2004 15:55 GMT
* "John Tamplin" <jtamplin@mth.biglobe.ne.jp> scripsit:
> Sorry Herfried, I don't get what you mean by "change the dropdown button to
> reference the file only and keep it in its original location"

"Project" -> "Add Existing Item..." -> Change the button labelled "Open"
to "Reference File" and press it.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/


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.