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

Assembly types created does not match expected type and trims FullName property. #42661

Open
xmione opened this issue Sep 19, 2024 · 0 comments

Comments

@xmione
Copy link

xmione commented Sep 19, 2024

Type of issue

Other (describe below)

Description

It is finally great to have this class to be able to dynamically create and save the dll. My concern though is that the created type does not match the expected type when it has generic parameters. For example, it trims the FullName property to it's base type name and removes the generic parameters from it. To illustrate this, I've created a sample code that uses .net 9.0 preview 7 and nuget package Blazor.Tools.BlazorBundler version 3.1.0. Although you can't run it in Replit because it only supports up to .net 7, I've created this link in Replit
https://replit.com/join/mgufadlhrk-solomiosisante
[Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-reflection-emit-persistedassemblybuilder

Content source URL

https://github.com/dotnet/docs/blob/main/docs/fundamentals/runtime-libraries/system-reflection-emit-persistedassemblybuilder.md

Document Version Independent Id

205f36d2-e637-bae1-4ec6-984fc74c83c9

Article author

@gewarren

Metadata

  • ID: 1c23ff20-338c-bff1-8c8b-e7b491016503
  • Service: dotnet-fundamentals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants