E
Edward Mitchell
I am trying to include two class files into a web service project. The
structure I have is a top level solution and project in a folder and below
that, the web service project in it's own folder. In the top level folder I
have two class files, classA.cs and classB.cs.
In the web service project, I use Add>Existing Item... and browse to select
the files in the parent directory. Unfortunately, when I hit the Open
button in the file select dialog, it makes a COPY of the files into the web
service project folder. I only want one version of a class file around.
Otherwise the maintenance issues are horrendous.
I'm looking for the equivalent to #include... that one would use in a C++
project but I can use that in a C# project.
There was a reference to this problem in this newsgroup on Nov 23, 2001 with
a URL
http://groups-beta.google.com/group..._doneTitle=Back+to+Search&&d#1d8c7bcade03cd7a .
One of the messages in the thread gives this advice:
Ian R Nov 23 2001, 4:20 pm show options
Newsgroups: microsoft.public.dotnet.languages.csharp
From: "Ian R" <[email protected]> - Find messages by this author
Date: Fri, 23 Nov 2001 19:20:08 -0500
Local: Fri, Nov 23 2001 4:20 pm
Subject: Re: how to "#include" a file in C#
Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse
Add Existing Item. When the select file dialog appears, highlight the
required file then drop the open button down to link file.
When I select the file(s) in the parent directory, the drop arrow on the
"Open" button only gives me a choice of "Open" or "Open with..." The "Open
with..." allows me to choose a program with which to open the file (such as
XML Schema editor, C# Editor, etc.) but there is no mention of a "Link."
Am I missing something or has VS.NET 2003 changed from what was around in
2001?
Is there a way to share files without creating a library?
Ed
structure I have is a top level solution and project in a folder and below
that, the web service project in it's own folder. In the top level folder I
have two class files, classA.cs and classB.cs.
In the web service project, I use Add>Existing Item... and browse to select
the files in the parent directory. Unfortunately, when I hit the Open
button in the file select dialog, it makes a COPY of the files into the web
service project folder. I only want one version of a class file around.
Otherwise the maintenance issues are horrendous.
I'm looking for the equivalent to #include... that one would use in a C++
project but I can use that in a C# project.
There was a reference to this problem in this newsgroup on Nov 23, 2001 with
a URL
http://groups-beta.google.com/group..._doneTitle=Back+to+Search&&d#1d8c7bcade03cd7a .
One of the messages in the thread gives this advice:
Ian R Nov 23 2001, 4:20 pm show options
Newsgroups: microsoft.public.dotnet.languages.csharp
From: "Ian R" <[email protected]> - Find messages by this author
Date: Fri, 23 Nov 2001 19:20:08 -0500
Local: Fri, Nov 23 2001 4:20 pm
Subject: Re: how to "#include" a file in C#
Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse
Add Existing Item. When the select file dialog appears, highlight the
required file then drop the open button down to link file.
When I select the file(s) in the parent directory, the drop arrow on the
"Open" button only gives me a choice of "Open" or "Open with..." The "Open
with..." allows me to choose a program with which to open the file (such as
XML Schema editor, C# Editor, etc.) but there is no mention of a "Link."
Am I missing something or has VS.NET 2003 changed from what was around in
2001?
Is there a way to share files without creating a library?
Ed