Shared source folder

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

I have one class file which I would like to share across several asp.net
apps in VS 2005. I would like changes I make to that shared file to
reflect in all the apps. By default when I add the shared file (which is in
its own directory) to the project, it gets copied to the project directory
and changes are reflected only there. Is there a way to have it not copy
the source file locally to the project folder, instead leaving it in the
shared folder only?

Sorry for posting this here, but the general vstudio group is not very busy
and I need an answer relatively quickly.

Thanks
Jon
 
I have one class file which I would like to share across several asp.net
apps in VS 2005. I would like changes I make to that shared file to
reflect in all the apps. By default when I add the shared file (which is in
its own directory) to the project, it gets copied to the project directory
and changes are reflected only there. Is there a way to have it not copy
the source file locally to the project folder, instead leaving it in the
shared folder only?

For this function (VS 2003, VB), I make a shared source file project, and
when I want to reference such a file from another project, I do Project, Add
Existing Item, browse to it, and then open it as a link file. I assume the
same is available in VS 2005. All caveats convey, eg an edit to a shared
file will be visible to all projects that share it, so you may fix some
things and break other things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top