point a .csproj file to use .cs files from its parent directory?

  • Thread starter Thread starter John E.
  • Start date Start date
J

John E.

Some of our developers are using .NET 2005 already and other are using 2003.
Since they are not backwards compatible, we were trying to devise a system
where we have 2 different project files that access the same source code
(.cs files). Is it possible to do something such as /src/2003project and
/src/2005project and put all the .cs files in the /src directory and only
have the project, user config, bin and obj objects in the equivilant project
directory (i.e. /src/2003project or /src/2005project). That way we could
just check in/out the .cs files while still be able to open the same project
accross multiple IDE's? If so, what paths/files will need to be modified to
accomplish this?

Thanks,
-John
 
If you've already converted the projects to .net 2005 you can simply edid
the csproj file and repoint the source files.

If you're about the create he .net 2005 project from scratch you can simply
"link" the source files to the project.
This is very easy. To do so you select "Add existing files" and selet the
sources. Now instead of accepting the selection (which will copy all the
files to the project folder) you
right-click the "OK" button (note that there is a small arrow on the
button). This will bring up a context dialog. Select "Link".

Hope that helps
Michael
 
Hi,

What you can do is link the file instead of copy it to the project folder,
right click on the project / Add existing item/
select the file you want and next to the filename textbox you have a
dropdown , by default it's in Open, change it to link file

I have no idea how to do a similar things when using a control version
system like source safe , but I imagine it would be a similar approach.



Cheers,
 
Back
Top