a group member said last night that castle has released the latest version. Let's check it out. However, not as a whole, Castle has released a new version, but its core projects, such as core, monorail, activerecord, and Windsor.
anyone who pays attention to Castle may think that the updating of Castle is too slow. A monorail developer here explains why monorail2 has spent so much time. Let's take a rough look at the changes they have made:
1. core 1.2
1) the email sender component is integrated with the system. net. the mailmessage, attachment, and attachmentcollection of mail replace message, messageattachment, and messageattachmentcollection.
2) logging services is integrated.
3) Four versions. NET 2.0,. net 3.5, for Silverlight 3.0 and for mono 2.6
2. monorail 2.0
1) Program configuration can be disabled on the web. in the config file, it is configured directly in the global class through program encoding.
Public void configure (imonorailconfiguration configuration) {configuration. controllersconfig. addassembly (assembly. getexecutingassembly (); configuration. viewengineconfig. viewpathroot = path. combine (appdomain. currentdomain. basedirectory, "views"); configuration. viewengineconfig. viewengines. add (New viewengineinfo (typeof (aspviewengine), false); // configue jquery as the validation engine configuration. jsgeneratorconfiguration. addlibrary ("jquery-1.2.1", typeof (jquerygenerator )). addextension (typeof (commonjsextension )). elementgenerator. addextension (typeof (jqueryelementgenerator )). done. browservalidatoris (typeof (jqueryvalidator )). setasdefault (); // configure URL extensions configuration. urlconfig. useextensions = false ;}
2) bind the return value
You can directly set the format of the return value of action. The following is the return value in JSON format:
Public class State {Public String code {Get; set;} [Return: jsonreturnbinder] public State [] getstates () {return new [] {new State {code = "ca"}, new State {code = "wa" }};}>
3) New Routing Engine
Http://www.castleproject.org/monorail/documentation/trunk/advanced/routing.html
4) rescuecontroller
Used to handle. http://www.castleproject.org/monorail/documentation/trunk/usersguide/rescues.html with exceptions in action
3. microkernel/Windsor 2.1.1
1) The biggest change is to support Silverlight. Two versions for. Net 3.5 and for Silverlight 3.0 were released.
2) supports redirection of configuration types in the configuration file:
<Component id = "hasforwards" type = "Castle. microkernel. tests. classcomponents. twointerfacesimpl, Castle. microkernel. tests "service =" Castle. microkernel. tests. classcomponents. icommon, Castle. microkernel. tests "> <forwardedtypes> <add service =" Castle. microkernel. tests. classcomponents. icommon2, Castle. microkernel. tests "/> </forwardedtypes> </component>
3) add dynamicparameters, add a return proxy, and call it during component analysis.
4) add oncreate, which is called before the component is created and removed.
5) add components for delayed loading. 6) Performance Optimization and bug fixing
4. activerecord 2.1.2
1) Castle validator updated to 1.1.1
2) an update is made based on nhib.pdf.
3) originally, ar also integrated with nhibbench. Search and nhibbench. LINQ.
............................
5. Extended development tools
Here we will introduce some castle-related development tools, although they have not yet released a new version:
1) activewriter ---- A Visual Object design tool for nhibcord (activerecord) integrated into vs. net
2) generator similar to ror
3) Visual Studio integration, used to create a project and support nvelocity smart prompts, you can view here.
The new features listed above do not include all the new features of the new version, but are just some of the documents on the official website. I did not expect Castle's sub-projects to be able to update the new version. The latest version can be downloaded from here, especially monorail. It is worth supporting to inherit and advance after Asp.net MVC is released. in the future, Castle may only update versions for different sub-projects. After the new version is released, the documents on the official website are also updated, if you are interested, you can go to the official website to view relevant documents and the developer's blog.
Author: lone knight (like a year of water)
Source: http://lonely7345.cnblogs.com/
The copyright of this article is shared by the author and the blog. You are welcome to repost this article, but you must keep this statement without the author's consent andArticleThe original text connection is clearly displayed on the page. Otherwise, the legal liability is retained.