RE: Any substitutes for #include in C#?
- From: "AMercer" <AMercer@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 20 Jul 2005 09:58:03 -0700
You can include a source file in multiple projects by doing:
Project
Add Existing Item
browse to the file and select it
instead of doing Open, click the small arrow near it and click Link File
"Byron" wrote:
> I'm working of several projects that use many of the same constants and I
> wanted to put them all into a single file and include them in all the
> projects that need them so I can maintain them in one place. I assume C# has
> some mechanism similar to the #include since it's so handy. Do you just
> create a class that contains the definitions outside the projects in a common
> structure then include the class in all the projects?
>
> Any suggestions would be greatly appreciated.
.
- References:
- Any substitutes for #include in C#?
- From: Byron
- Any substitutes for #include in C#?
- Prev by Date: One Question to a specific GUI Controll
- Next by Date: Blank friendly name in Windows Firwall Exception List
- Previous by thread: Re: Any substitutes for #include in C#?
- Next by thread: RE: Any substitutes for #include in C#?
- Index(es):
Relevant Pages
|