1.9.5 Released

32 views
Skip to first unread message

Alec Whittington

unread,
Feb 7, 2011, 11:29:13 PM2/7/11
to S#arp Architecture

McTrev

unread,
Feb 8, 2011, 4:04:11 AM2/8/11
to S#arp Architecture
Great news. I'm hoping to upgrade a project I'm working on from the
previous release to this one.

Don't suppose there are a check list of things I need to change or to
be aware of?

On Feb 8, 4:29 am, Alec Whittington <alec.whitting...@gmail.com>
wrote:
> http://weblogs.asp.net/alecwhittington/archive/2011/02/07/sharp-archi...
>
> Please report any issues that you might encounter.
>
> Cheers,
> Alec Whittington
> twitter:http://twitter.com/alecwhittington
> <http://twitter.com/alecwhittington>blog:http://blog.sharparchitecture.net
> Become a fan of S#arp Architecture on
> Facebook<http://www.facebook.com/pages/Sarp-Architecture/117591724971997>

Seif Attar

unread,
Feb 8, 2011, 7:58:40 AM2/8/11
to sharp-arc...@googlegroups.com
I have updated SharpArchContrib to .Net4 and SharpArch 1.9.5, you can
get downloads from

https://github.com/sharparchitecture/Sharp-Architecture-Contrib/downloads

> --
> You received this message because you are subscribed to the Google Groups "S#arp Architecture" group.
> To post to this group, send email to sharp-arc...@googlegroups.com.
> To unsubscribe from this group, send email to sharp-architect...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sharp-architecture?hl=en.
>
>

Paul Hinett

unread,
Feb 8, 2011, 8:17:51 AM2/8/11
to sharp-arc...@googlegroups.com
Great news and good timing for a new project I'm starting today!

Looking forward to the 2.0 release...what additional features will 2.0 have
by the way?

Paul

-----Original Message-----
From: sharp-arc...@googlegroups.com
[mailto:sharp-arc...@googlegroups.com] On Behalf Of Seif Attar
Sent: 08 February 2011 12:59
To: sharp-arc...@googlegroups.com
Subject: Re: 1.9.5 Released

I have updated SharpArchContrib to .Net4 and SharpArch 1.9.5, you can get
downloads from

https://github.com/sharparchitecture/Sharp-Architecture-Contrib/downloads

On Tue, Feb 8, 2011 at 9:04 AM, McTrev <ntco...@gmail.com> wrote:
> Great news. I'm hoping to upgrade a project I'm working on from the
> previous release to this one.
>
> Don't suppose there are a check list of things I need to change or to
> be aware of?
>
> On Feb 8, 4:29 am, Alec Whittington <alec.whitting...@gmail.com>
> wrote:
>> http://weblogs.asp.net/alecwhittington/archive/2011/02/07/sharp-archi...
>>
>> Please report any issues that you might encounter.
>>
>> Cheers,
>> Alec Whittington
>> twitter:http://twitter.com/alecwhittington
>> <http://twitter.com/alecwhittington>blog:http://blog.sharparchitectur

>> e.net Become a fan of S#arp Architecture on

Paul Hinett

unread,
Feb 8, 2011, 8:26:04 AM2/8/11
to sharp-arc...@googlegroups.com
Does the AreaViewEngine not support .cshtml files for the razor view
engine?

From first looking at the source code, it only seems to be looking for .aspx
files.

Seif Attar

unread,
Feb 8, 2011, 8:33:00 AM2/8/11
to sharp-arc...@googlegroups.com
At the end of this thread

http://groups.google.com/group/sharp-architecture/browse_thread/thread/a0b0ef0a911b2e5

Bas says he got it working with Razor, all you need is a custom AreaViewEngine

public class AreaViewEngine : RazorViewEngine
{
public AreaViewEngine()
{
AreaViewLocationFormats = new[] {
"~/Views/{2}/{1}/{0}.cshtml",
"~/Views/{2}/Shared/{0}.cshtml",
};

AreaMasterLocationFormats = AreaViewLocationFormats;
AreaPartialViewLocationFormats = AreaViewLocationFormats;
}
}

Hope this helps,
Seif

Paul Hinett

unread,
Feb 8, 2011, 8:37:02 AM2/8/11
to sharp-arc...@googlegroups.com
Thank you that worked, would be better if this was baked into the sharp
project though.

http://groups.google.com/group/sharp-architecture/browse_thread/thread/a0b0e
f0a911b2e5

Hope this helps,
Seif

>>> r e.net Become a fan of S#arp Architecture on

Alec Whittington

unread,
Feb 8, 2011, 10:10:54 AM2/8/11
to sharp-arc...@googlegroups.com
We will have an upgrade guide in the next week or so, in the meantime i say just go for it.

Cheers,
Alec Whittington

Alec Whittington

unread,
Feb 8, 2011, 10:12:14 AM2/8/11
to sharp-arc...@googlegroups.com
Paul,
    I will be the first to admit that we are not fans of the Razor view engine, but you are right, this should be baked into the core. Perhaps we will place an alternate area view engine in the contrib in the meantime and for 2.0 add the razor support.

Cheers,
Alec Whittington

Paul Hinett

unread,
Feb 8, 2011, 10:17:51 AM2/8/11
to sharp-arc...@googlegroups.com

Ok that’s fine.

 

Do you guys still recommend the spark view engine out of the engines available then…I’ve not really used anything other than the Web Form engine at the moment (which is terrible!!)

 

Paul

 

From: sharp-arc...@googlegroups.com [mailto:sharp-arc...@googlegroups.com] On Behalf Of Alec Whittington
Sent: 08 February 2011 15:11
To: sharp-arc...@googlegroups.com
Subject: Re: 1.9.5 Released

 

We will have an upgrade guide in the next week or so, in the meantime i say just go for it.

geoffrey smith

unread,
Feb 8, 2011, 10:27:18 AM2/8/11
to sharp-arc...@googlegroups.com
Spark is to be the default (though it is very, very easy to swap out view engines). The great thing about Spark is that it is very easy to implement into any sort of e-mail or PDF templating your system might do.

For Razor this is needlessly complicated, or at least was a couple months ago when I researched it.

Alec Whittington

unread,
Feb 8, 2011, 10:59:08 AM2/8/11
to sharp-arc...@googlegroups.com
We still recommend Spark and with 2.0 it will be the defacto. I'm starting to work with Razor at work, so I will give some real world feedback as we go forward with it internally.

Jonathan George

unread,
Feb 8, 2011, 11:26:05 AM2/8/11
to sharp-arc...@googlegroups.com
Having spent the past four weeks working on a project using Razor, I've had my initial views confirmed - it's better than WebForms, but it's a long way off being as nice to work with as Spark. 

Jon

gs

unread,
Feb 8, 2011, 11:43:01 AM2/8/11
to S#arp Architecture
I should also point out that since I complained about Spark
conflicting with jquery-templates, which is now part of jquery-ui
proper, there's been a few nice workarounds:

http://blog.robertgreyling.com/2010/11/spark-and-jquery-templates-learn-how-to.html

On Feb 8, 10:26 am, Jonathan George <j...@jonathangeorge.co.uk> wrote:
> Having spent the past four weeks working on a project using Razor, I've had
> my initial views confirmed - it's better than WebForms, but it's a long way
> off being as nice to work with as Spark.
>
> Jon
>
> On 8 February 2011 15:59, Alec Whittington <alec.whitting...@gmail.com>wrote:
>
>
>
>
>
>
>
> > We still recommend Spark and with 2.0 it will be the defacto. I'm starting
> > to work with Razor at work, so I will give some real world feedback as we go
> > forward with it internally.
>
> > Cheers,
> > Alec Whittington
> > twitter:http://twitter.com/alecwhittington
> > On Tue, Feb 8, 2011 at 8:27 AM, geoffrey smith <smith.geoffre...@gmail.com
> > > wrote:
>
> >> Spark is to be the default (though it is very, very easy to swap out view
> >> engines). The great thing about Spark is that it is very easy to implement
> >> into any sort of e-mail or PDF templating your system might do.
>
> >>  For Razor this is needlessly complicated, or at least was a couple
> >> months ago when I researched it.
>
> >> On Tue, Feb 8, 2011 at 9:17 AM, Paul Hinett <p...@ukcreativedesigns.com>wrote:
>
> >>> Ok that’s fine.
>
> >>> Do you guys still recommend the spark view engine out of the engines
> >>> available then…I’ve not really used anything other than the Web Form engine
> >>> at the moment (which is terrible!!)
>
> >>> Paul
>
> >>> *From:* sharp-arc...@googlegroups.com [mailto:
> >>> sharp-arc...@googlegroups.com] *On Behalf Of *Alec Whittington
> >>> *Sent:* 08 February 2011 15:11
>
> >>> *To:* sharp-arc...@googlegroups.com
> >>> *Subject:* Re: 1.9.5 Released
>
> >>> We will have an upgrade guide in the next week or so, in the meantime i
> >>> say just go for it.
>
> >>> Cheers,
> >>> Alec Whittington
>
> >>> twitter:http://twitter.com/alecwhittington
>
> >>> blog:http://blog.sharparchitecture.net
>
> >>> Become a fan of S#arp Architecture on Facebook<http://www.facebook.com/pages/Sarp-Architecture/117591724971997>

clayton collie

unread,
Feb 8, 2011, 5:50:06 PM2/8/11
to sharp-arc...@googlegroups.com
Question,
i'm working on a long term project, and i've been working with a custom version of 1.5. The changes i made was to swap out Castle for StructureMap. 

Are there any dependencies on Castle (outside of Castle.Core for NH and Windsor for the SharpArch.Web assembly ?) I'd rather not have to convert IOC usage to upgrade.

Alec Whittington

unread,
Feb 8, 2011, 6:52:03 PM2/8/11
to sharp-arc...@googlegroups.com
I believe those are still the only ones, but I will need to verify that for you. There are the main dependencies in the template, but sounds like you've got that covered.

GHS

unread,
Feb 9, 2011, 1:36:57 AM2/9/11
to S#arp Architecture
I have successfully created site using SA1.9.5. I have faced only 2
minor issues.
1. MvcContrib.TestHelper, I had to replaced with MVC 3 version from
MvcContrib site
2. ISessionFactoryKeyProvider, I had to register using
DefaultSessionFactoryKeyProvider in



On Feb 8, 3:52 pm, Alec Whittington <alec.whitting...@gmail.com>
wrote:
> I believe those are still the only ones, but I will need to verify that for
> you. There are the main dependencies in the template, but sounds like you've
> got that covered.
>
> Cheers,
> Alec Whittington
> twitter:http://twitter.com/alecwhittington
> On Tue, Feb 8, 2011 at 3:50 PM, clayton collie <gbo...@gmail.com> wrote:
> > Question,
> > i'm working on a long term project, and i've been working with a custom
> > version of 1.5. The changes i made was to swap out Castle for StructureMap.
>
> > Are there any dependencies on Castle (outside of Castle.Core for NH and
> > Windsor for the SharpArch.Web assembly ?) I'd rather not have to convert IOC
> > usage to upgrade.
>
> > On Tue, Feb 8, 2011 at 11:43 AM, gs <smith.geoffre...@gmail.com> wrote:
>
> >> I should also point out that since I complained about Spark
> >> conflicting with jquery-templates, which is now part of jquery-ui
> >> proper, there's been a few nice workarounds:
>
> >>http://blog.robertgreyling.com/2010/11/spark-and-jquery-templates-lea...

Kevin Jensen

unread,
Feb 9, 2011, 2:19:00 AM2/9/11
to S#arp Architecture
Can you let me know how to do #2? (ISessionFactoryKeyProvider fix)

-Kevin

Chris Richards

unread,
Feb 9, 2011, 10:29:53 AM2/9/11
to S#arp Architecture
You need to add the code below to
ComponentRegistrar.AddGenericRepositoriesTo in the CastleWindsor
namespace of your SharpArchitecture.<APP_NAME>.Web project:

container.Register(
Component
.For(typeof(ISessionFactoryKeyProvider))
.ImplementedBy(typeof(DefaultSessionFactoryKeyProvider))
.Named("sessionFactoryKeyProvider"));

Alec Whittington

unread,
Feb 9, 2011, 10:36:50 AM2/9/11
to sharp-arc...@googlegroups.com
Chris,
    I'll get this updated tonight and a new release packaged up for it.

Kevin Jensen

unread,
Feb 9, 2011, 10:38:24 AM2/9/11
to S#arp Architecture
Thanks Chris!

On Feb 9, 9:29 am, Chris Richards <chris.richa...@yellowfeather.co.uk>
wrote:

Chris Richards

unread,
Feb 9, 2011, 4:03:56 PM2/9/11
to S#arp Architecture
Thanks Alec, where is the source for the SharpArch Templify package?
When I made the multi-tenancy updates I couldn't find it on GitHub.

Chris

On Feb 9, 3:36 pm, Alec Whittington <alec.whitting...@gmail.com>
wrote:
> Chris,
>     I'll get this updated tonight and a new release packaged up for it.
>
> Cheers,
> Alec Whittington
> twitter:http://twitter.com/alecwhittington
> ...
>
> read more »

Alec Whittington

unread,
Feb 9, 2011, 6:40:09 PM2/9/11
to sharp-arc...@googlegroups.com
There is no source for it, I usually use the last templify package, make the changes, then have Templify package it up for me. The original package was created from a 1.6.0.0 VS template that we used to distribute.

If you want to make a custom package, I would suggest using the latest package (at whatever point in time you are working from), apply the changes and then use Templify to package it for you. Templify takes a process that used to take at least a couple of nights and condenses it down to a matter of an hour or so (including the time it takes to make the changes that are needed).
Reply all
Reply to author
Forward
0 new messages