473,324 Members | 2,456 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,324 software developers and data experts.

Visual C# Express 'Include' libraries

Hi,

Is it possible in Visual C# Express to reference source files from a
folder other than the current project folder? I want to have a common
folder with various cs source files and be able to reference the files
from different projects. This will allow me to edit them as I develop
projects. Or do you have to compile the common code into a DLL or EXE
and reference them that way?

Thanks.

John.

Sep 26 '06 #1
3 1848
John,

I don't know if you are able to use Express to compile dll libraries.
If not, then I would recommend compiling your classes into a library using
the command line compiler (look for information on CSC.exe) or, find a
project file for a dll library and modify it to use your files, and then use
MSBUILD to build it (the preferred method, it will make things much easier).

Then, you can reference your dll from your EXE project.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<Jo********@hotmail.co.ukwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Hi,

Is it possible in Visual C# Express to reference source files from a
folder other than the current project folder? I want to have a common
folder with various cs source files and be able to reference the files
from different projects. This will allow me to edit them as I develop
projects. Or do you have to compile the common code into a DLL or EXE
and reference them that way?

Thanks.

John.

Sep 26 '06 #2
Hi,

Yes you can, select add an existing item and then instead of add click on
the little arrow and select link.

IMO this is not a good idea though . you can make changes from one project
to that file that can break other projects.
It's much better if you create a library project and then the others
projects just add a reference to it.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<Jo********@hotmail.co.ukwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Hi,

Is it possible in Visual C# Express to reference source files from a
folder other than the current project folder? I want to have a common
folder with various cs source files and be able to reference the files
from different projects. This will allow me to edit them as I develop
projects. Or do you have to compile the common code into a DLL or EXE
and reference them that way?

Thanks.

John.

Sep 26 '06 #3
Ignacio,

Thanks for that tip re: the Add Link. That works a treat. I accept what
you say about the dangers but I was just wanting to do it this way for
the initial development and testing and didn't want to keep compiling a
DLL each time I wanted to make changes in the common code. The projects
I was referring to were just test projects anyway to help develop the
code.

John.
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

Yes you can, select add an existing item and then instead of add click on
the little arrow and select link.

IMO this is not a good idea though . you can make changes from one project
to that file that can break other projects.
It's much better if you create a library project and then the others
projects just add a reference to it.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Sep 26 '06 #4

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

Similar topics

2
by: Bootstrap Bill | last post by:
A new Google group has been formed for the purpose of discussing the new Visual Studio Express products. http://groups-beta.google.com/group/Visual-Studio-Express The products are currently in...
0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
1
by: Thomas Holmgren | last post by:
Hi all I've tried to get my hands on the End User License Agreement for MS Visual C# .NET 2003 STANDARD edition, sofar without luck. Does anybody know where I can find the license agreement...
2
by: John Salerno | last post by:
I haven't had much experience with it, so I'm wondering, is VWD something you can use to create a personal website, or would Dreamweaver, etc. be better for that sort of thing?
3
by: clintonG | last post by:
Visual C# 2005 Express Edition is a simple, lightweight, integrated development environment designed for beginning programmers and non-professional developers interested in building Windows Forms,...
2
by: borucik | last post by:
I am trying to use libcurl with Visual C++ 2005 Express Edition. I downloaded the file from here: http://curl.haxx.se/dlwiz/?type=lib&os=Win32&flav=-&ver=2000%2FXP It is the 7.16.0 version of the...
3
by: pb | last post by:
Is it possible to create a class library in visual web developer 2005 express edition and complie into a dll? If so how?
1
compman9902
by: compman9902 | last post by:
My question is about the free version of Microsoft's Visual C++ known as Visual C++ Express. It is about includes. A couple of months ago, I made an include and I would now like to include that into...
11
by: =?Utf-8?B?UGV0ZXIgSw==?= | last post by:
I am working with Visual Studio or alternately with Expression Web. I need to create about 50 aspx pages with about 1200 thumbnali images, typically arranged in three to four groups per page,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
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
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...

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.