New version 0.7 release by Nikhil ... some good improvements

31 views
Skip to first unread message

rekna

unread,
Apr 15, 2011, 9:05:08 AM4/15/11
to Scriptsharp
see the video at MIX11 http://channel9.msdn.com/events/MIX/MIX11/HTM16

some problems I had on converting from 0.6 tot 0.7 :

* do remember to target your project to .Net 4 framework or you will
get strange compilation errors, like
The type 'System.Action' exists in both
'c:\Program Files (x86)\Reference Assemblies\Microsoft
\Framework\v3.5\System.Core.dll'
and 'c:\Program Files (x86)\ScriptSharp\v1.0\Framework
\mscorlib.dll'

* Callback type is not longer supported, but you can replace it with
Action
* AjaxRequestCallback is replaced by generic version
AjaxRequestCallback<T>, to quickly convert existing script to 0.7 you
can use AjaxRequestCallback<object>
* AjaxRequestCallback<T> requires the use of jQueryXmlHttpRequest<T>
instead of XmlHttpRequest in callback functions, again <object> can be
used for quick conversion
* .Cast<T>() is replaced by .Plugin<T>()

Reply all
Reply to author
Forward
0 new messages