-
Notifications
You must be signed in to change notification settings - Fork 373
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
Derived symbol value is empty when it is in Symbol geneator #6291
Comments
Hi @chunyu3, Thank you for reporting the bug. |
It was reproduced with dotnet 7.0.2. Root cause is the wrong order processing generated symbol and computed symbol at templating/src/Microsoft.TemplateEngine.Orchestrator.RunnableProjects/RunnableProjectGenerator.cs Lines 376 to 387 in a51479c
This issue was fixed in PR #5223 that refactored at templating/src/Microsoft.TemplateEngine.Orchestrator.RunnableProjects/MacroProcessor.cs Lines 27 to 79 in 3ea9033
BTW, .NET 6.0 doesn't have this problem. |
Hi @chunyu3, Could you specify the urgency of this fix for your tasks? Do you have a workaround? |
Thanks @YuliiaKovalova and @GangWang01 for the quick resolve. Yes, it will block our project to generate the correct project via template and it has current no workaround now. |
Hi @chunyu3, We are discussing possible solutions behind the scene. I will give you more information once know more. |
Hi @chunyu3 , The issue is fixed for release/7.0.2xx. Best Regards, |
Thanks for your help! |
in dotnet 7.0.2, When we reference a derived symbol in a symbol generator, the generated symbol value does not contain the derived symbol.
run
dotnet new *** --ClientName test
The value of
PackageName
:Actual:
Package.
expected:
Package.Test
It works fine in dotnet 3.1.
The text was updated successfully, but these errors were encountered: