« Return to Thread: Dynamic Proxy - Silverlight Build
The current silverlight projects are
incorrect. I tried to build a silverlight version of Windsor and DP just last
week, and hit a large wall and decided to give up.
The main issues were:
1) I found that the *.Silverlight.csproj files are still referencing
System.dll, System.Core.dll, and mscorelib.dll from the .NET framework path.
These should be linking to those in the silverlight SDK folder (something line
C:\program files\microsoft sdks\silverlight\2.0…)
2) After fixing (1) I found some issues with classes that didn’t
make it into silverlight 2.0 ( mainly the HybridDictionary). See the
Silverlight 2.0 documentation for the System.Collections.Specialized
namespace, only a few interfaces made it.
I looks like the best solution to make
Castle.Core, Castle.MicroKernal, and Castle.Windsor source compatible with
Silverlight 2.0 is to swap
HybridDictionary(true)
For
Dictionary<string,
object>(StringComparrison.OrdinalIgnoreCase)
Or specific types, like in AbstractHandler.cs
Dictionary<string,
DependencyModel>(StringComparrison.OrdinalIgnoreCase)
Since Dictionary<K,V> implements
IDictionary, I found that this didn’t break the interfaces, and therefore
is largely backwards compatible.
Also I found a combination of
dictionaries where some ignore case, and some don’t.
After finding out the level of required
change to make it compile for silverlight I gave up, and resorted to using the silverlight
build of unity. I don’t know if there are other Classes that are being
used in the .NET Framework that are not in Silverlight other than the
HybridDictionary, but it wont take long to find out.
Cheers,
Peter
Davis
Software
Engineer, EW Operational Support Group
BAE Systems
Phone +61 8 8480 7266
If
debugging is the process of removing bugs, then programming must be the process
of putting them in.
From:
castle-project-devel@...
[mailto:castle-project-devel@...] On Behalf Of Jonathon Rossi
Sent: Monday, 15 June 2009 9:54 AM
To:
castle-project-devel@...
Subject: Re: Dynamic Proxy -
Silverlight Build
There are many unit tests
that aren
On Mon, Jun 15, 2009 at 10:22 AM, Mark <markspambuster@...> wrote:
Thanks Jono,
Anything I can do to help?
On Jun 15, 12:10 pm, Jonathon Rossi <j...@...>
wrote:
> There is plans to set up a Silverlight build on TeamCity, however last
time
> I had an attempt at getting it all building with Silverlight I had a lot
of
> trouble with unit tests. I still have my working copy from then so I
> planning to just get it building and worry about getting the tests running
> later.
>
> We haven
> aware of any committers that are pushing to keep it up to date, but a CI
> build will ensure that happens. However, we do want to support it for our
> users for thanks for the patch.
>
>
>
>
>
> On Mon, Jun 15, 2009 at 10:03 AM, Mark <markspambus...@...> wrote:
>
> > Hi,
>
> > I
> > be gentle ;-).
>
> > I have used RhinoMocks for quite a while and now I
> > with Silverlight. RhinoMocks uses Dynamic Proxy and the other day I
> > found a bug which I raised and was fixed almost immediately
(awsome!).
>
> > However, it appears that the Silverlight version isn
> > automatically and when I got the source and tried to build it took a
> > bit of rearranging for the code to compile and so I
> > that I may have broken something in the process (link to patch
below).
>
> > So my questions are:
> > Is the Silverlight version being actively "developed"
(well, actively
> > kept in synch with main code base)?
> > Is there a build for the Silverlight version? If not can we get one?
>
> > I don
> > an hour or 2 getting this in place will be worth it for us in the
long
> > run (and hopefully there wouldn
> > going...?).
>
> > And finally a general "you guys are awesome" for the
libraries you
> > produce - Thanks!
>
> > Thanks
>
> > Mark
>
> > The patch I produced is here:
> >http://www.walkersretreat.co.nz/files/DYNPROX-92-Silverlight.zip
>
> --
> Jono- Hide quoted text -
>
> - Show quoted text -
--
Jono
"Warning: The information contained in this email and any attached files is confidential to BAE Systems Australia. If you are not the intended recipient, any use, disclosure or copying of this email or any attachments is expressly prohibited. If you have received this email in error, please notify us immediately. VIRUS: Every care has been taken to ensure this email and its attachments are virus free, however, any loss or damage incurred in using this email is not the sender's responsibility. It is your responsibility to ensure virus checks are completed before installing any data sent in this email to your computer."
« Return to Thread: Dynamic Proxy - Silverlight Build
| Free embeddable forum powered by Nabble | Forum Help |