473,385 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

File Linking - .Net

Just wanted to let y'all know something that I dug up...maybe ya already knew.

You know you can link files in .Net so you can work on 1 single file and have it
compile for each project or selected projects in 1 solution?

Two examples:

I have a common module I want in my DAL and BLL project which contain simple
logic functions/subs and don't really "fit" into a class (just let's say it's
true). But instead of having a common.vb module in both the DAL and BLL project,
I want to LINK the file to both and only have 1 working file to modify.

Another use that is more popular is Solution-Wide assembly attributes. I want my
DAL and BLL to have the same key and version number, and/or some other assembly
attributes. Instead of placing these attributes into the AssemblyInfo.vb file, I
want to create another code-file and include it into all projects.

Well...answer..

Create the file, add it to the solution (you can add to the solution itself as an
existing item, creating a new item under the solution, or just add a new item to
one of the projects. Any will work). Once a file that you want has been added
to the solution or one of the projects, you can "link" it to any other project in
the solution. Just right-click on the project or folder you want it to be
"added" to and select the Add Existing Item action. Then, locate the file in
question...before you click the "Open" button, notice that it has a drop-down
arrow (the button that says "Open" has the arrow). Drop down to see the "Link"
button and click it. Now just click the "Link" button to link the file to the
project.

Please note, I will be testing this feature with SourceSafe to see how it
works...may or may not remember to reply back here to let ya know what will
happen....

By the way, if you already knew about this...sorry...this is for those that
didn't :) I didn't and I've been developing in .Net for awhile now heh.

Mythran
Nov 16 '05 #1
0 1028

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

Similar topics

2
by: LP | last post by:
Hi, I have a site which runs on .Net technology. The site is already deployed and running. I need to change 1 file for some small enhancement. Please tell me, how can I compile that 1 file and...
2
by: faktujaa | last post by:
Hi All, I have to avoid cyclic reference in my DLLS. One way is to move the code to the common DLL. But now since i have written a lot of code, it would take a whole lot of time to do this. The...
5
by: Arnab Nandi | last post by:
We are using the Sun Workshop 6 C++ compiler to compile some CPP files. The command line looks like follows: - CC -g -xsb -c -o output/x.o x.cpp We get the following error: - CC: language...
7
by: A_StClaire_ | last post by:
hi, I'm working on a project spanning five .cpp files. each file was used to define a class. the first has my Main and an #include for each of the other files. problem is my third file...
2
by: Tim Jones | last post by:
I need to link a CSV file to an Access table, due to the device that generates this file it's extension is DB not CSV. Is there an easy way of linking the two without having to manually alter the...
11
by: Michael Gaab | last post by:
Compilation in c generally has four phases 1. Preprocessing 2. Compilation 3. Assembly 4. Linking. If I use a flag that will not link the code, order of compilation is not an issue,...
6
by: shaun | last post by:
If I put (define) const variables at the top of a .cpp file but do not declare them in the .h file, are they only visible within that .cpp file? e.g. const int a={1,2,3,4}; in a cpp file...
13
by: Paul Cheetham | last post by:
Hi, I have two projects where I want to use the same source file in each project. If I add the file to each project, then a local copy is made. I want to be able to have a single source file...
8
by: nishit.gupta | last post by:
I was having a problem with template class memer function definition , so i serched the net and find that template class member fuction definition should be in header file else compilation will...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.