K
Kevin Frevert
In the process of learning VS2005/C# (having a background in Borland Delphi
2 through 2005) I came across an interesting feature of Visual Studio's file
management. At first, it appeared there wasn't a way for me to 'share'
common business objects (ex. \Projects\Objects\Customer\CustomerObject.cs)
across multiple solutions.
When I select Add -> Existing Item, navigate to the directory, and select
the .CS file and select Add, VS *copies* the file to the solution's
directory (no longer follows the local directory structure or structure
configured in source control).
What happens when, not if, I change the file? Is this a bug? Have I just
become lazy because Delphi's default behavior to adding objects/units is to
*use* the file from where ever you added it from? How can I guarantee that
all our other developers compile the same base source code?
Then a developer on a Borland newsgroup pointed out the Add button in the
'Add Existing Item' dialog box is also a drop-down (yes, very intuitive)
that allows me to 'Add as Link'. Tada, now my business objects are shared,
and not copied.
I brought up my dilemma with 3 Microsoft Visual Studio 'experts' at PDC-2005
who basically told me sharing files in multiple projects wasn't possible
(one actually questioned why anyone would do that).
So my question, why would 'linking' not be the default behavior? Wouldn't
copying lead to more bugs (especially in a multiple developer environment)
and more file management/versioning headaches? Is there a way to make
'linking' the default 'Add' behavior?
Thanks,
Kevin
2 through 2005) I came across an interesting feature of Visual Studio's file
management. At first, it appeared there wasn't a way for me to 'share'
common business objects (ex. \Projects\Objects\Customer\CustomerObject.cs)
across multiple solutions.
When I select Add -> Existing Item, navigate to the directory, and select
the .CS file and select Add, VS *copies* the file to the solution's
directory (no longer follows the local directory structure or structure
configured in source control).
What happens when, not if, I change the file? Is this a bug? Have I just
become lazy because Delphi's default behavior to adding objects/units is to
*use* the file from where ever you added it from? How can I guarantee that
all our other developers compile the same base source code?
Then a developer on a Borland newsgroup pointed out the Add button in the
'Add Existing Item' dialog box is also a drop-down (yes, very intuitive)
that allows me to 'Add as Link'. Tada, now my business objects are shared,
and not copied.
I brought up my dilemma with 3 Microsoft Visual Studio 'experts' at PDC-2005
who basically told me sharing files in multiple projects wasn't possible
(one actually questioned why anyone would do that).
So my question, why would 'linking' not be the default behavior? Wouldn't
copying lead to more bugs (especially in a multiple developer environment)
and more file management/versioning headaches? Is there a way to make
'linking' the default 'Add' behavior?
Thanks,
Kevin