views:

945

answers:

5
+4  Q: 

C# Common Library.

Hello and thanks for any assistance.

I'm hoping to find an open source .net common library, but I'm having a hard time finding one.

What I'm looking for a is something that contains : Logging, Caching, String Manipulation, Config Reading, ext?!?.

Do you know if anything like this exists or is this more likely something that I will need to create myself?

Thanks.

+21  A: 

Use Microsoft Enterprise Application Blocks

Get it from here

http://msdn.microsoft.com/en-us/library/cc467894.aspx

Source code here

http://www.codeplex.com/entlib

amazedsaint
String manipilation is in the Regex classes, and the String class, but all the rest is definitely in the application blocks.
casperOne
+7  A: 
davogones
+3  A: 

All that is built into the framework, so all you really need is mono.

Joel Coehoorn
Logging and caching are not built into the framework. And what does mono have to do with the question?
davogones
Take a look at the Trace class as the support for writing to the windows event log. For caching, there are classes available to persist dictionary values. You asked about open source, hence mono: the open source .Net implementation.
Joel Coehoorn
+2  A: 

Kev:

Just a bit more elaboration, I've spent quite a bit of time trying to reuse code from other frameworks: Here is a breakdown based on feature sets:

Infrastructures frameworks( config, logging, caching, etc)

  1. SpringFramework.NET - ( Port of the popular Java SpringFramework )

  2. Microsoft Enterprise Library - Microsoft "answer" to SpringFramework.

Frameworks providing ActiveRecord or Ioc(Inversion Of Control) or Code generation:

  1. Castle Project http://www.castleproject.org/index.html

  2. SubSonic http://subsonicproject.com/

  3. NetTiers http://nettiers.com

Finally, you may find many other smaller libraries, frameworks on CodePlex.com Some that are of note:

  1. CommonLibrary.NET http://commonlibrarynet.codeplex.com/

  2. DotNet Commons http://dotnetcommons.codeplex.com/

A: 

Logging - have a look at Log4net

Ian Ringrose