Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to specify the ALC in which to generate a dynamic assembly. #598

Closed
1 task
StephenBonikowsky opened this issue Dec 5, 2019 · 1 comment
Closed
1 task
Assignees
Milestone

Comments

@StephenBonikowsky
Copy link
Member

StephenBonikowsky commented Dec 5, 2019

Example Scenario

XmlSerializer lives in the default ALC of a project.
A type marked as Serializable lives in a custom ALC such as part of a plug-in to the project.
It finds and uses the XmlSerializer in the default ALC and creates the dynamic assembly in the default ALC which then doesn't know anything about the type needing to be serialized because it is in a different ALC.

This requires new APIs in CoreClr which WCF would then need to use to enable specifying where to create the generated dynamic assembly.

Original issue: dotnet/corefx#41286

  • Port to 3.1.x
@StephenBonikowsky StephenBonikowsky added this to the 5.0 milestone Dec 5, 2019
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Dec 5, 2019
@jkotas
Copy link
Member

jkotas commented Dec 5, 2019

This requires new APIs in CoreClr

AssemblyLoadContext.EnterContextualReflection should allow you to do this.

@StephenBonikowsky StephenBonikowsky removed the untriaged New issue has not been triaged by the area owner label Dec 9, 2019
@HongGit HongGit modified the milestones: 5.0.0, 6.0.0 Aug 25, 2020
MichalStrehovsky pushed a commit to MichalStrehovsky/runtime that referenced this issue Mar 25, 2021
@HongGit HongGit assigned HongGit and unassigned mconnew Jun 21, 2021
@jeffhandley jeffhandley modified the milestones: 6.0.0, 6.0.x Nov 22, 2021
radical pushed a commit to radical/runtime that referenced this issue Jul 7, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants