473,320 Members | 1,950 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,320 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 18 '05 #1
0 797

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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.