[dba-VB] c# - Creating and using a shared module

jwcolby jwcolby at colbyconsulting.com
Fri Mar 11 20:37:10 CST 2011


You make it sound so easy, but it is an existing project already which was not created as a class 
library project.  I need to create the class library project then somehow get the directories and 
files into that project and get it to compile.

At that point I can reference it by other solutions.

John W. Colby
www.ColbyConsulting.com

On 3/11/2011 12:52 PM, Shamil Salakhetdinov wrote:
> Hi John --
>
> <<<
> Any suggestions, tips and tricks, warnings, how to etc.?
>>>>
> Just do it! :)
>
> I mean if you managed to handle MS Access library databases then handling
> .NET class libraries would be a "breeze" work for you.
>
> Create class library project - you can keep it within its own solution
> having main (console) project of that solution as a (unit) test one.
> Put all three solutions - two application ones and class library one in
> subfolders of the same root folder. (You can do it differently but this is
> how it's done usually AFAIK)
> Add existing class library project to application solutions.
> Reference class library projects from application projects.
> if you use VS2008 and you have a good PC with plenty of memory (and you have
> one don't you?) then you can keep all three solutions open in three
> instances of VS2008.
> Just keep tack from which solution you have made class library code changes
> last time - when you'll switch to the other solution and if you have the
> same source code file opened in it you'll get a message  like that "Source
> file changed - would you like to reload it?" - reply  yes...
>
> ...
>
> Use SVN or Mercurial for source code control. Do commit source code changes
> to the source code repository from time to time...
> ...
>
> I have 58 projects in one of the solutions here - that results in more than
> 5 apps and quite some class libs compiled and built - AFAIK folks do have
> more than hundred projects within solutions sometimes...
>
>
> Thank you.
>
> --
> Shamil
>
> -----Original Message-----
> From: dba-vb-bounces at databaseadvisors.com
> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby
> Sent: 11 ????? 2011 ?. 19:57
> To: VBA
> Subject: [dba-VB] c# - Creating and using a shared module
>
> I have split my solution into two solutions.  However each of those two
> solutions uses a shared project which I call "base objects".  Obviously I
> want to split that off and then reference that solution from both of the
> main solutions.
>
> I have never done this before.  Any suggestions, tips and tricks, warnings,
> how to etc.?
> --
> John W. Colby
> www.ColbyConsulting.com
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
>
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
>
>



More information about the dba-VB mailing list