none
REferencing a .cs file in a different project RRS feed

  • Question

  • HI All,

    I have two C# Projects (X &Y and has two different .sln files). In the Y Project, I would like to reference to some files in (X) and I dont want use to option "Add existing ITem" because it copies the file to the project Y. Instead I would like to keep the file in the folder where Project X is present and simply use it in the project Y. The file is a *.cs script. Please help me how to do it. and i have both vS 2005 and VS 2008 setup.

    Regards,
    NEw BIE
    Thursday, September 18, 2008 7:05 PM

Answers

  • You could create two folders of the same project and use add existing item because that is what we do because our source control does not allow keep changes so we backup changes before connecting to source control.

    So create a backup of the solution and add one version in add existing item, this how I do it.


    Asp.net MVP, MCPD Web C#, MCITP BI & MCTS SQL Server 2005
    • Marked as answer by Figo Fei Thursday, September 25, 2008 3:38 AM
    Thursday, September 18, 2008 8:44 PM
    Moderator