Adding common class file to project but don't want to add it to the projects folders I am working on

  • Thread starter Thread starter codebie
  • Start date Start date
C

codebie

Guest
So I am having one project directory that consists of my codes and exe files. C:\Project1\ and C:\Project2, etc.

Then I have another central directory that I have the cs class file that I always use for all the projects as well. C:\Projects\common.cs

When I am working on Project 1 or Project 2, and right click on Project and add common.cs - VS automatically adds common.cs to my Project 1 and Project 2, so when I make any changes, it only changes the common.cs file in the Project 1 and Project 2. That's not what I want. I would like the changes to happen inside C:\Projects\common.cs so it will be good across the board without me having to go into each project to change the common.cs code.

When I add the common.cs file, it should NOT add the file to Project1 and Project 2.

Is that possible?

Thanks

Continue reading...
 
Back
Top