Derived symbol value is empty when it is in Symbol geneator
See original GitHub issuein 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.
"symbols": {
"clientName": {
"type": "parameter",
"datatype": "text",
"isRequired": true,
"description": "client name"
},
"ClientNameCapitalCase": {
"type": "derived",
"datatype": "text",
"valueSource": "clientName",
"valueTransform": "firstUpperCase",
"replaces": "Template"
},
"PackageName": {
"type": "generated",
"generator": "join",
"parameters": {
"symbols": [
{
"type": "const",
"value": "Package"
},
{
"type": "ref",
"value": "ClientNameCapitalCase"
}
],
"separator": "."
},
},
}
Issue Analytics
- State:
- Created 6 months ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Available Symbols Generators · dotnet/templating Wiki
Derived - defines transformation of another symbol. The value of this symbol is derived from the value of another symbol by applying the ......
Read more >Nice looking empty set? - math mode
I feel like the standard $\emptyset$ is ugly. By hand, my empty set symbol is a lot rounder, then this "slashed-zero"-type symbol. Two...
Read more >Reference for template.json
Derived symbol A symbol that defines transformation of another symbol. The value of this symbol is derived from the value of another...
Read more >“⠀” U+2800 Braille Pattern Blank Unicode Character
U+2800 is the unicode hex value of the character Braille Pattern Blank. Char U+2800, Encodings, HTML Entitys:⠀,⠀, UTF-8 (hex), UTF-16 (hex), UTF-32 (hex)...
Read more >Solvers - SymPy 1.12 documentation
This may cause a situation in which an empty dictionary is returned. In that case, all symbols can be assigned arbitrary values. Input...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @chunyu3,
We are discussing possible solutions behind the scene. I will give you more information once know more.
Thanks for your help!