Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I watched the DNR TV episode with Glenn Block and it looks like MEF would be useful for my company. I am trying to find out more information on it's strengths and weaknesses and some sample projects that use it. Are there any good blogs/tutorials on using MEF?
Note: I use C#, so if the examples are in C#, that would be awesome.
I haven't found a really comprehensive page, but there are a few:
Microsoft Docs
Simple Example from a msdn blog
Code Project's Introduction to MEF (part 1)
MEF 101 part A from Geek with Blogs
MEF 101 part B
Another MSDN blog, a little more history than tutorial
Mike Taulty recently did a set of screencasts on using MEF in Silverlight, which should be a good introduction to MEF.
I've done an ever growing series on MEF from the very basics into more advanced stuff planned in the near future.
http://randomactsofcoding.blogspot.com/2009/11/working-with-managed-extensibility.html
I wrote this MEF demo article on CodeProject, and all the code is open sourced.
If you're looking for information on the latest version of MEF that is shipping with the next .NET Framework, the definitive source of information is the BCL Team Blog on MSDN.
(MEF is part of the .NET Base Class Libraries.)
Microsoft Docs is a good start
Kathleen Dollard has some good materials as well
Dependency Injection in .NET by Mark Seemann has a section on MEF, as well as Castle Windsor, StructureMap, Spring.NET, Autofac, and Unity.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I decided to start studying code from other developers to improve my coding skills.
I'm looking for a open-source software that uses MVC pattern, and also most design patterns possible.
Could you recommend some open-source software written in C# or VB.NET that uses as many design patters as possible or some code that worth studying?
I would recommend some projects like NServiceBus, which make extensive use of polymorphism (not to mention the NServiceBus API is one of the best APIs I've had the pleasure of using). Also consider something like StructureMap, which uses a model-based configuration API (I actually use Ninject as my IoC of choice, and it could prove to have some interesting code as well). It's hard for me to point out whether or not these projects use specific design patterns, and how many it may use, but I do know that they use some modern APIs and modern approaches to object oriented design.
I would say, though, that your best bet is going to be to find an open source project that you find interesting, or that you use regularly, and crack it open and see what makes it tick. If you are familiar with the details of using the code (whatever it may be), then you will probably gain more insight be looking at the code because you know what it is doing.
I always recommend .NET Domain-Driven Design with C#: Problem-Design-Solution sample code - SmartCA project. It is extremely elegantly laid out and I find myself going back to it whenever I have doubts about my architecture.
You should also download and check out ASP .NET MVC source code. It's got good examples of unit testing and mocking (which is something you will find yourself wanting to use).
I'd recommend checking out the Northwind Starter Kit (http://nsk.codeplex.com/) - it covers off on many design patterns and their application in the .Net framework, including SOA and MVC/MVP/PM concepts. It also includes examples of several other free-to-use libraries, such as Microsoft Entity Framework and NHibernate.
I'm personally particularly pleased with the way they show the same backend can be used with both WPF and ASP.Net.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
For Perl, there is cpan.org, where I can lookup and reuse any previously built package in my own code.
Is there a similar open source code repository for C#?
Edit: Thanks all. I also just found code.google.com.
http://www.codeplex.com/ for starters. That's the most "official" one. But you'll find numerous other resources such as sourceforge.net and CodeProject.com
Google Code also has a C# section
I think your what your looking for is CodePlex.
Wikipedia Entry:
CodePlex is an open source project hosting website from Microsoft. It allows shared development of open source software. Its features include wiki pages, source control based on Team Foundation Server but accessible using Subversion, discussion forums, issue tracking, project tagging, RSS support, statistics, and releases.
While Codeplex encompasses a wide variety of projects, including SQL, WPF and Windows Forms-related projects, major activities center around the .NET framework, including ASP.NET, and Microsoft's intranet collaboration server, SharePoint. The most prominent and used project that was born inside CodePlex, the AJAX Control Toolkit is a joint project between the community and Microsoft.
codeplex - not really 100% match to your need but has got lots of goodies
also codeproject
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I can't really seem to find any good .NET Micro Framework Tutorials on google. Does anyone know of any?
Have a look here: http://informatix.miloush.net/microframework/, this site contains many examples, articles and resources you will find handy when developing for Micro Framework.
On that website there's a feed which aggregates all the feeds from all the blogs targeting .net micro framework, so you can stay in touch with the latest news from this field.
And if you are seriously interested in developing for this platform, you should get the book called Expert .NET Micro Framework. It is an excellent introduction with many examples and how-tos.
Check Scott's Hanselminutes Session at http://www.hanselman.com/blog/HanselminutesOn9TheNETMicroFrameworkWithColinMiller.aspx
As well as the earlier mentioned http://informatix.miloush.net/microframework/, You could check out the official .NET Micro Framework portal on MSDN.
It has some links to blogs with some good "Howto's"
Here's a "getting started" tutorial with some book recommendations
There's also an unofficial community which may offer some help on the matter: http://wiki.microframework.nl
A really good way for you to learn and understand the .NET micro framework is by using it for embedded software development. You can purchase a board called the Netduino available at http://www.netduino.com. You can work on some of the example projects mentioned on the web site or peruse online through the netduino forum community for more sample projects.
By doing hands on work, you can relate to the .net micro framework libraries in the context of real world embedded applications. This will be very useful to you and you will have fun learning it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
After reading a series of blogs (here and here) by Chris Missal from LosTechies.com on the Specification Pattern I am am really interested in finding more complete examples. Does anyone know where I could find a more fleshed out example or perhaps an open source project that uses this pattern?
Also take a look at the Dimecasts 'Learning the Specification pattern' for a walkthrough of an example.
Having learned the Specification pattern through the same blogs as you listed, I'm not yet convinced. It could just be that the examples are too simplistic so it seems more work that it's worth. A good, extensive example that shows come genuine benefit would be nice.
Take a look at the "Specifications" paper authored by Eric Evans and Martin Fowler.
The following blog article - "The Specification Pattern" - might also be of use to you.
I actually think the Wikipedia page (at the time of this post) is a more concise and easier to absorb example of using the Specification pattern...lostechies.com actually references it.
Here is the link: Wikipedia: The Specification Pattern
For me one of the best examples is the Route Specification that Eric Evans uses on his book.
The source code is here, it is written in Java but is very easy to understand and translate to C#.
You can find many sample projects about design patterns (Specification Pattern as well) here from "Professional ASP.NET Design Patterns" book.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Any suggestions for open source aspect-oriented library for c#. Thanks
Post Sharp
Spring.NET
I am using Castle Windsor and Dynamic Proxy, which together provide a simple way to apply your standard AOP method interception through external XML configuration.
If you have more advanced AOP needs, Aspect# might be useful (also relies on Dynamic Proxy) - but I have found that Windsor fulfills my needs perfectly.
Please note that Dynamic Proxy provides only runtime AOP. There are solutions out there that can mix in your aspects at compile time (although I can't recall the name of any of them).
DynamicProxy from CastleProject is probably the most lightweight and powerful solution regarding dynamic interception.
I would suggest Spring.NET as well, but only because that's the only one I have experience with. Spring.NET offers so much more (IoC, transaction management, nice validation framework) but you can use just what you need from it.
Spring.NET is great in general, and so is its AOP support.
No idea why people are saying to avoid it. Infact it is one of the most stable and reliable frameworks in the .NET world.
Dev progress is slow, but that is fine because it is already feature rich and stable.