I don't know if the IDE allows this or not, but you can add items to a
project's .csproj and make it a link.  The syntax looks like this:

<File
RelPath = "grok.cs"
Link = "..\srclib\grok.cs"
SubType = "Code"
BuildAction = "Compile"
/>

I don't have visual studio .net at this location, so I can't check on IDE
support for links via the properties window.

Seang



-----Original Message-----
From: David Ferguson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 2:17 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET] How to create a C# source lib?


How to create a C# source lib?

I would like to start C# a source code library.  It will include
general utility classes.  I will keep the library in one central
place, say \dev\srclib.  I will add individual files to projects as
needed.

Here is the problem...

When 'I use Project/Add Existing Item' to include the source module
VS.NET makes a copy of the source file in the current project
directory.  Obviously any changes made to this copy don't make it back
to original source.

So I how do get VS.NET to create a reference and not make a copy?

Thanks...David

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to