You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider using source generators for currently generated code #13236
Thinking about CDXML more, I think because that's a runtime code emission thing, that might be more a question of Reflection.Emit-type usages. AFAIK, Source Generators only occur at compile time, whereas CDXML files we must process when loaded at runtime
CDXML files we must process when loaded at runtime
The idea would be instead of generating a PowerShell module based on the cdxml, generate a binary module at compile time and ship that instead. afaik nothing changes based on the environment it's loaded into, just based on the cdxml.
I know PowerShell doesn't specifically ship any cdxml (right?), but a PS team supported build time cmdletization API would be ideal.
In #10898Dongbo Wang (@daxian-dbw) used internal tool to convert type files in optimal format. We could do the same for format files without creating RSGs. Or vice versa, use generators in both cases (and share them for other projects). Although I'm not sure if it will зука win.
Much of the core interpreter was generated in Python many years ago. There has been discussion in the past about updating our dependency on the LightCompiler.
Do you mean #2230? I believe the code was copy-pasted from old .Net with a little change.
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
Activity
SeeminglyScience commentedon Jul 22, 2020
Related: #12760
iSazonov commentedon Jul 22, 2020
The issue looks like Meta. Could you add more info where you want to use RSG (Roslyn Source Generators)?
I only know we use TypeGen utility at pre-build time.
rjmholt commentedon Jul 22, 2020
Thinking about CDXML more, I think because that's a runtime code emission thing, that might be more a question of
Reflection.Emit-type usages. AFAIK, Source Generators only occur at compile time, whereas CDXML files we must process when loaded at runtimeSeeminglyScience commentedon Jul 22, 2020
The idea would be instead of generating a PowerShell module based on the cdxml, generate a binary module at compile time and ship that instead. afaik nothing changes based on the environment it's loaded into, just based on the cdxml.
I know PowerShell doesn't specifically ship any cdxml (right?), but a PS team supported build time cmdletization API would be ideal.
iSazonov commentedon Jul 23, 2020
In #10898 Dongbo Wang (@daxian-dbw) used internal tool to convert type files in optimal format. We could do the same for format files without creating RSGs. Or vice versa, use generators in both cases (and share them for other projects). Although I'm not sure if it will зука win.
Do you mean #2230? I believe the code was copy-pasted from old .Net with a little change.
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.