Patrice Calve

Life's short, have fun
posts - 53, comments - 77, trackbacks - 31

My Links

News

Archives

Post Categories

Image Galleries

Wednesday, January 06, 2010

SCSF - Add View with presenter not showing

When creating a new SCSF project, the "solution recipe" does a great job creating the basis, but there's a few things you need to know/adjust.  Since creating SCSF solutions/projects isn't an activity we do on a day-to-day basis, we tend to forget these quirks.

The name you give your "solution" will be used in the assembly name (the output dll) and the namespace of the projects.  So the Infrastructure.Interface will have an assembly name "MySolution.Infrastructure.Interface.dll", and the namespace will be MySolution.Infrastructure.Interface.  The same will be for the MySolution.Infrastructure.Library, MySolution.Infrastructure.Module, MySolution.Infrastructure.Shell and MySolution.Infrastructure.Layout.

The problem is that the ProfileCatalog.xml is generated with assembly names without the "MySolution" prefix.  So, starting the solution will return a "ModuleLoadException was unhandled" error.

Don't change the values from the ProfileCatalog.xml.  Instead, change the AssemblyName to a dll name without the "MySolution" prefix, because...

When you later create a "business/fundation" project, the recipes like "Add View (with Presenter)" are expecting projects that reference the "Infrastructure.Interface.Dll"  If there's a prefix like "MySolution.Infrastructure.Interface.dll" the recipe/package won't be enabled.

 

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Wednesday, January 06, 2010 8:14 PM | Feedback (1) | Filed Under [ P&P Software Factories ]

Powered by: