Repository navigation
Replies: 1 comment
|
In my books, more support for more frameworks is always better. I am not too familiar with Silverlight internals, but given that it is a different framework all together (with probably its own assembly probing/resolution algorithm), it seems appropriate to indeed introduce new separate resolvers for this. That is, a new Part I am unsure about is adding unit tests. Ideally, CI/CD should have silverlight/moonlight installations so that we can run them on every commit as well. I am not sure how easy it is to get silverlight in our runners. If that doesn't work, we may need to resort to |
Uh oh!
There was an error while loading. Please reload this page.
I would like to propose adding first-class support for Silverlight assemblies to AsmResolver's runtime detection and assembly resolution infrastructure.
At present,
DotNetRuntimeInfocan parse a target framework identifier such asSilverlight,Version=v5.0, but Silverlight is not represented as a known runtime in the same way as .NET Framework, .NET Core, or .NET Standard. As a result, the existing runtime and resolution infrastructure does not appear to distinguish Silverlight from the other supported frameworks when selecting a corlib or assembly resolver.This can be relevant when analysing or rewriting legacy Silverlight assemblies, where framework references should be resolved against the corresponding Silverlight reference assemblies rather than a regular .NET Framework installation.
A possible initial scope would be Silverlight 4 and 5, including:
DotNetRuntimeInfo.Before working on an implementation, I would like to ask what architecture would be preferred for this.
Would a dedicated Silverlight resolver/path provider, similar to the existing .NET Framework and .NET Core implementations, be appropriate? Alternatively, would it be preferable to extend or generalize the existing reference-framework resolution infrastructure to accommodate Silverlight?
I would be interested in implementing this if the feature is considered appropriate for the project.
All reactions