You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Arjan Veenstra (JIRA)" <ji...@apache.org> on 2011/09/06 12:48:09 UTC
[jira] [Commented] (LOG4NET-204) Silverlight compiled binary
[ https://issues.apache.org/jira/browse/LOG4NET-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097883#comment-13097883 ]
Arjan Veenstra commented on LOG4NET-204:
----------------------------------------
Silverlight supports only a subset of .NET and is binary incompatible, which is quite a PITA. Microsoft made some seemingly random (I'm sure there are reason, but often I can't find them) decisions about what is supported in Silverlight. On top of that some stuff actually changed, e.g. lots of classes are suddenly sealed, non-generic collections are made internal etc.
As a quick check I converted the log4net project file to Silverlight and tried to build it, which resulted in quite a few errors. At least there are the following issues:
- Serialization needs to use DataContract, not Serializable.
- All collections need to become generic.
- XML parsing needs to be done useing Linq2XML as XmlDocument/XmlElement etc are not available.
- Some appenders depend on stuff unavailable in Silverlight (they could be disabled though).
- Lots of appenders will only work when elevated trust is available.
I also guess some of the required changes might break conflict with compatibility with older .NET versions.
I'd really like to have Log4Net available on Silverlight, but getting there won't be a trivial task.
> Silverlight compiled binary
> ---------------------------
>
> Key: LOG4NET-204
> URL: https://issues.apache.org/jira/browse/LOG4NET-204
> Project: Log4net
> Issue Type: Wish
> Components: Builds, Examples
> Affects Versions: 1.2.10
> Reporter: Trond Andersen
> Fix For: 1.2 Maintenance Release
>
>
> There should be a Silverlight build of log4net that can be used in Silverlight applications.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira