Sharp Architecture 1.9 released

by alec.whittington 19. December 2010 07:37

It has been quite some time since our last release. This latest release brings upgrades in several dependencies as well as removing of others.

Upgraded

The following dependencies have been upgraded to their latest versions:

Removed

The following have been removed from the project:

  • MvcContrib.Castle -> There were only two classes from this assembly we were using: WindsorExtensions.cs and WindsorControllerFactory.cs. Since the release schedules of many OSS projects do not match up and the fact that the MvcContrib project had already updated their vNext (MVC 3) branch with the castle dependencies and not the MVC 2 branch, it was decided we should bring these two classes in and lose the dependency when it was not needed.
  • Castle.DynamicProxy2 and Castle.MicroKernal -> The assemblies were merged into other assemblies by the Castle project. They are no longer needed
  • NHibernate.Linq -> Since NHibernate 3.0 GA has a new Linq provider, it was no longer needed.

Download it now

We are offering this release in two formats, a Templify package and binaries only. Since the source is readily available, we no longer will be prodiving it in the downloads. If you do not know what Templify is, you can read about it here. If you are going to spin up a new solution, please follow the guide for using Templify below. It will show you how to get the package into your Templify repo. If you are wanting to upgrade a 1.5.x or higher solution, follow the guide to upgrading.

Starting a fresh solution with Templify

If you have not already downloaded and installed Templify, do so now. You can obtain the build from: http://opensource.endjin.com/templify/download.htm

  1. Download the Sharp Architecture 1.9.0.0 Templify package from: https://github.com/downloads/sharparchitecture/Sharp-Architecture/sharp-architecture-1.9.0.0-templify-package.zip
  2. Extract the contents into their own folder
  3. run the copy-package.cmd script
  4. Follow the instructions located here (http://weblogs.asp.net/alecwhittington/archive/2010/10/10/using-templify-to-create-a-new-s-arp-architecture-solution.aspx) to get up and going using Templify.

Upgrading your existing project

These instructions are only good for people using Sharp Architecture 1.5.x or higher.

  1. Download the Sharp Architecture 1.9.0.0 binaries only zip from: https://github.com/downloads/sharparchitecture/Sharp-Architecture/sharp-architecture-1.9.0.0-binaries-only.zip
  2. Extract the contents into their own folder
  3. copy the contents of the folder into your /lib folder
  4. Delete the following from the /lib folder
    • Castle.DynamicProxy2.dll and .xml
    • Castle.MicroKernel.dll and .xml
    • Castle.Services.Logging.Log4netIntegration.xml
    • MvcContrib.Castle.dll and .xml
    • NHibernate.Linq
  5. Open your solution in Visual Studio
  6. Go through each project and remove references to
    • Castle.DynamicProxy2
    • Castle.MicroKernel
    • MvcContrib.Castle
    • NHibernate.Linq
  7. Now you need to update your projects to use the proper version of the updated components. There are several ways to do this, from upgrading each .*proj file manually or by using Visual Studi. I've done it both ways, but prefer to use VS to help out.
    • Using Visual Studio - Open a project that references any of the following: Castle.*, NHibernate.*, MvcContrib.*, Fluent NHibernate, or SharpArch. Right click on the reference and click properties. Once there, set Specific Version = true. This will update the proj file to use the version that is in your /lib folder.
  8. Build the solution to see what errors are there
    • Remove reference to MvcContrib.Castle from your global.asax in the .Web project.
    • [OPTIONAL] Update your component registration to use the newer Castle.Windsor API

Your mileage will vary. If you find any issues with this, please report them on the google group, http://groups.google.com/group/sharp-architecture.

Notables

I would like to point out that we have removed the dependency on MvcContrib.Castle, if you are using anything more than the WindsorExtensions.cs and WindsorControllerFactory.cs, then you will need to implement that functionality yourself or upgrade MvcContrib to the latest dependencies. While we normally do not like to nick code from others, in this case we wanted to upgrade to the latest version of Castle (also required for NHibernate and Fluent Nhibernate) and would have had to make a custom build of MvcContrib to do so properly. The end result is that those two classes now reside within S# and we have one less dependency that has a dependency.

Tags: , , ,

S#arp Architecture | Templify

Comments

12/19/2010 8:20:01 AM #

trackback

Sharp Architecture 1.9 released

Sharp Architecture 1.9 has been released. This version upgrades Sharp Architecture to use the latest

Alec Whittington |

12/19/2010 8:23:49 AM #

trackback

Sharp Architecture 1.9 released

You've been kicked (a good thing) - Trackback from DotNetKicks.com

DotNetKicks.com |

12/19/2010 7:12:21 PM #

pingback

Pingback from topsy.com

Twitter Trackbacks for
        
        Sharp Architecture Development Blog | Sharp Architecture 1.9 released
        [sharparchitecture.net]
        on Topsy.com

topsy.com |

12/20/2010 4:39:45 PM #

Diego

Maybe it's time for Akismet?

Lots of spam comments :/

Btw, great update Laughing Good to use NHibernate 3.0 goodness

Diego Brazil |

12/21/2010 6:44:38 AM #

alec.whittington

We have Akismet turned on, but it seems to be filtering through "Stopforumspam" first and that filter has bigger holes than the Titanic. For now, we've stopped automated filtering of comments.

alec.whittington United States |

12/20/2010 8:18:58 PM #

pingback

Pingback from blog.cwa.me.uk

The Morning Brew - Chris Alcock  » The Morning Brew #754

blog.cwa.me.uk |

12/20/2010 9:36:53 PM #

Ryan Cromwell

Sounds like a good opportunity to make SharpArch a Nuget metapackage.  Would save the pain of updating references next release.

Ryan Cromwell United States |

12/21/2010 6:50:15 AM #

alec.whittington

We've planned on doing this for our upgrade releases, I just need to take the time to figure out a few things with NuGet first. One of the things I do not care for is the use of the "packages" directory. Fine and dandy for most things, but in this case, it would cause more problems for our end users than it's worth.

Example:
If a user wants to upgrade now, they can download 1.9 binaries and extract them all to their "/lib" folder. They might need to update the assembly version either in the csproj files or through assembly redirects.

If they used NuGet, they would have to remove the reference to SharpArch.dll and any of it's dependencies. This has to be done for each project. Then they have to re-add the proper assemblies, now from a /Packages directory.

In the end, I think NuGet will get the nod from us as once they have set-up an existing project, it is far less painless to keep the dependencies updated.

alec.whittington United States |

12/28/2010 7:41:45 PM #

Bassam86

Hello!
please check this link in SharpArch discussion forums..

Tempify problem

thank you

Bassam86 Syria |

12/28/2010 7:42:19 PM #

Bassam86

sorry.. the link !

groups.google.com/.../7fe8538fee7084f7

Bassam86 Syria |

8/19/2011 12:24:58 AM #

pingback

Pingback from programmersgoodies.com

Sharparchitecture upgrade from 1.5 to 1.9 error - Programmers Goodies

programmersgoodies.com |

9/24/2011 7:49:46 AM #

pingback

Pingback from lunascoeconsulting.com

Sharp Architecture 1.9 released | Codalico.us

lunascoeconsulting.com |

6/15/2012 1:15:06 PM #

pingback

Pingback from originalmind.com.au

Creating a new Sharp Architecture 2.0.4 Project with Templify and NuGet | Original Mind Pty Ltd

originalmind.com.au |

1/1/2013 8:42:05 AM #

pingback

Pingback from siteduct.com

ASP.Net Script Installation Service

siteduct.com |

2/11/2013 8:29:07 PM #

pingback

Pingback from sitefixing.com

website malware removal

sitefixing.com |

Comments are closed

About the Team

Sharp Architecture was originally created by Billy McCafferty.

The project is currently led by Alec Whittington and the development team currently consists of James Broome, Jon George and Howard van Rooijen

Page List