Skip to content

Commit

Permalink
use coalesce instead of join
Browse files Browse the repository at this point in the history
  • Loading branch information
askazakov authored and AndreyAkinshin committed Oct 5, 2023
1 parent 2d379b3 commit 00628ab
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,35 +90,22 @@
"datatype": "string",
"cases": [
{
"condition": "(framework == '' && consoleApp == true)",
"condition": "(consoleApp == true)",
"value": "net6.0"
},
{
"condition": "(framework == '' && consoleApp == false)",
"condition": "(consoleApp == false)",
"value": "netstandard2.0"
},
{
"condition": "(framework != '')",
"value": ""
}
]
}
},
"frameworkValue": {
"type": "generated",
"generator": "join",
"description": "join framework and frameworkDefault",
"generator": "coalesce",
"parameters": {
"symbols": [
{
"type": "ref",
"value": "framework"
},
{
"type": "ref",
"value": "frameworkDefault"
}
]
"sourceVariableName": "framework",
"fallbackVariableName": "frameworkDefault"
},
"replaces": "$(Framework)"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,35 +90,22 @@
"datatype": "string",
"cases": [
{
"condition": "(framework == '' && consoleApp == true)",
"condition": "(consoleApp == true)",
"value": "net6.0"
},
{
"condition": "(framework == '' && consoleApp == false)",
"condition": "(consoleApp == false)",
"value": "netstandard2.0"
},
{
"condition": "(framework != '')",
"value": ""
}
]
}
},
"frameworkValue": {
"type": "generated",
"generator": "join",
"description": "join framework and frameworkDefault",
"generator": "coalesce",
"parameters": {
"symbols": [
{
"type": "ref",
"value": "framework"
},
{
"type": "ref",
"value": "frameworkDefault"
}
]
"sourceVariableName": "framework",
"fallbackVariableName": "frameworkDefault"
},
"replaces": "$(Framework)"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,35 +90,22 @@
"datatype": "string",
"cases": [
{
"condition": "(framework == '' && consoleApp == true)",
"condition": "(consoleApp == true)",
"value": "net6.0"
},
{
"condition": "(framework == '' && consoleApp == false)",
"condition": "(consoleApp == false)",
"value": "netstandard2.0"
},
{
"condition": "(framework != '')",
"value": ""
}
]
}
},
"frameworkValue": {
"type": "generated",
"generator": "join",
"description": "join framework and frameworkDefault",
"generator": "coalesce",
"parameters": {
"symbols": [
{
"type": "ref",
"value": "framework"
},
{
"type": "ref",
"value": "frameworkDefault"
}
]
"sourceVariableName": "framework",
"fallbackVariableName": "frameworkDefault"
},
"replaces": "$(Framework)"
},
Expand Down

0 comments on commit 00628ab

Please sign in to comment.