473,320 Members | 1,982 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.

Sharing c# library source files?

13
ok i'm new to .net and c#, so this maybe a dumb question to some of you!

but why can't i have a folder containing all my reusable classes without it being copied ( duplicated ) over to the project folder?

if i ever need to modify the library-file it seems i need to search through all my project folders and then replace them with the updated file. a lot of work for something that was commonly used in c/c++.

am i missing something? ( sorry if this is common knowledge to you guys )...

thanks for reading, any replies welcome.
Jan 10 '08 #1
4 1309
Plater
7,872 Expert 4TB
Build a library(DLL) with all your re-usable classes.
Then you can just reference the DLL in your projects.
Jan 10 '08 #2
horizon
13
well thanks for the quick reply, must say it was the quickest response i've ever had :)

ok i'd have to agree with your answer if i were grouping together similar functions, but if were talking reference variables and/or small dissimilar functions then it doesn't make sense.

oh well if that's how c# works then theres nothing either of us can do about it,
thanks again for your help.
Jan 10 '08 #3
Plater
7,872 Expert 4TB
I'm not sure what you ment that you could do it in C++?
You have libraries of files in C++ that you reference, just like you reference your DLL.
If you want, somewhere in visual studio properties, you can decide paths to locations where your files can be found. Like a search path where it will look for classes.
I don't remember where you do this but I think you can.
Jan 10 '08 #4
Malc
1
Menu Add-->Existing Item

Select the file to Add

Click on the "Down Arrow" on the Add button

Select "Add as link"
Aug 25 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Simon Neve | last post by:
Hello, This question is related to sharing .Net projects across solutions and is reposted from the SourceSafe group. We have several different solutions and want to share common assemblies...
7
by: Dan | last post by:
I'd like to have a set of more-or-less common code which I want to use for both desktop and smart device projects. I have two questions: 1. How can I set up conditional compile directives for...
16
by: Robert W. | last post by:
I'm building a solution that has 1 component for the Desktop and 1 component for the Pocket PC. (Though this isn't a mobile question). I have a data library that will be shared on both platforms....
2
by: Matze | last post by:
I have setup Visual Studio to work with a VSS-Server. (Source Off Site) I dont see a way to share and later branch my project. File -> Source Control -> Share is grayed out. What is the best way...
0
by: John Lafrowda | last post by:
Dear all, here is a simple problem that I cannot overcome: I'm trying to write a client/server application in Visual Basic .net. The server is an executable (.exe) project, the clients are class...
2
by: Andrew E Chapman | last post by:
I have a VB.NET class library project and two other VB.NET projects that depend on that class library, ie: Class library --Project 1 --Project 2 Currently, as you'd expect, when I compile...
2
by: Carlo \(MCP only\) | last post by:
Hi to all I'm askyng you a suggestion about the best way to share the same source code between VS2003 and VS2005. The project I'm developing is a controls and components library, and the...
5
by: Gregory Gadow | last post by:
All done in ASP.Net 2.0 using VB... The website I am developing has a large DLL that includes custom MembershipUser, MembershipProvider and RoleProvider classes, several frequently used web...
2
by: Jeff Dege | last post by:
I'm working with a group that's been doing C++ coding for quite a long time, now, and in that environment we've pretty much worked out development practices that serve us well. We've been doing...
45
by: =?Utf-8?B?QmV0aA==?= | last post by:
Hello. I'm trying to find another way to share an instance of an object with other classes. I started by passing the instance to the other class's constructor, like this: Friend Class...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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

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.