473,386 Members | 1,720 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,386 software developers and data experts.

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

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
Nov 16 '05 #1
2 4589
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
"John E." <PleaseReply@usenet> wrote in message
news:eX**************@TK2MSFTNGP10.phx.gbl...
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

Nov 16 '05 #2
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"John E." <PleaseReply@usenet> wrote in message
news:eX**************@TK2MSFTNGP10.phx.gbl...
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

Nov 16 '05 #3

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

Similar topics

9
by: JR | last post by:
Hi, I'm migrating my website to an IIS 6.0 server and all the asp pages work fine except for the ones that reference include files, even though I have "Enable parent paths" enabled in the...
2
by: Kenneth McDonald | last post by:
I'd like to propose a new PEP , for a standard library module that deals with files and file paths in an object oriented manner. I believe this module should be included as part of the standard...
1
by: Rizaan Jappie via DotNetMonster.com | last post by:
hi where can I find the Visual Studio.Net Project XML Schema (.csproj schema) for c#. I need to build a DOM (document object model) that automates the process of creating c# project files(.csproj)...
1
by: -DG- | last post by:
In the course of investigating differences between C# projects generated in VS2003 vs VS2005 (see my post about reformatting code), I've found big differences in the .csproj file. I haven't gone...
2
by: mobilegolfer | last post by:
I'm helping a friend set up his dev environment. In trying to add an asp.net project to his solution we are stuck. The web's virtual directory (a ClearCase share) is defined and viewable from IIS. ...
5
by: sunyour | last post by:
I'm developing an application that takes a csproj file as input (and output). I've searched for a definition or schema file for the csproj xml-file to understand the possibilites and restrictions,...
2
by: Danny Boy | last post by:
Hi, "Snif" is an excellent little script to index files and directories. It's just one single file, and the advantage is that you merely drop it into the directory you want to index, point a...
0
by: John A Grandy | last post by:
I have a number of ASP.NET 1.1 web apps that were not created in VS.NET -- and therefore do not have .csproj files. I would like to add these web apps into a VS.NET solution. If I create a...
4
by: Max2006 | last post by:
Hi, When I use Web Deployment Project to create a deployment image of my web site, It includes un-necessaty files such as *.csproj files. Can I disable the deployment of *.csproj files?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.