Commit 11c0bfff authored by Brad King's avatar Brad King
Browse files

VS: Generalize CSharp /langversion flag mapping

Map the `/langversion:` flag followed by any value to a `LangVersion`
element with the specified value in the `.csproj` file.

Fixes: #22089
parent 57872e6d
......@@ -363,52 +363,13 @@
},
{
"name": "LangVersion",
"switch": "langversion:ISO-1",
"switch": "langversion:",
"comment": "",
"value": "ISO-1",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:ISO-2",
"comment": "",
"value": "ISO-2",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:3",
"comment": "",
"value": "3",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:4",
"comment": "",
"value": "4",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:5",
"comment": "",
"value": "5",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:6",
"comment": "",
"value": "6",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:default",
"comment": "",
"value": "default",
"flags": []
"value": "",
"flags": [
"UserValue",
"UserRequired"
]
},
{
"name": "DelaySign",
......
......@@ -363,52 +363,13 @@
},
{
"name": "LangVersion",
"switch": "langversion:ISO-1",
"switch": "langversion:",
"comment": "",
"value": "ISO-1",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:ISO-2",
"comment": "",
"value": "ISO-2",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:3",
"comment": "",
"value": "3",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:4",
"comment": "",
"value": "4",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:5",
"comment": "",
"value": "5",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:6",
"comment": "",
"value": "6",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:default",
"comment": "",
"value": "default",
"flags": []
"value": "",
"flags": [
"UserValue",
"UserRequired"
]
},
{
"name": "DelaySign",
......
......@@ -363,52 +363,13 @@
},
{
"name": "LangVersion",
"switch": "langversion:ISO-1",
"switch": "langversion:",
"comment": "",
"value": "ISO-1",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:ISO-2",
"comment": "",
"value": "ISO-2",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:3",
"comment": "",
"value": "3",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:4",
"comment": "",
"value": "4",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:5",
"comment": "",
"value": "5",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:6",
"comment": "",
"value": "6",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:default",
"comment": "",
"value": "default",
"flags": []
"value": "",
"flags": [
"UserValue",
"UserRequired"
]
},
{
"name": "DelaySign",
......
......@@ -363,52 +363,13 @@
},
{
"name": "LangVersion",
"switch": "langversion:ISO-1",
"switch": "langversion:",
"comment": "",
"value": "ISO-1",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:ISO-2",
"comment": "",
"value": "ISO-2",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:3",
"comment": "",
"value": "3",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:4",
"comment": "",
"value": "4",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:5",
"comment": "",
"value": "5",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:6",
"comment": "",
"value": "6",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:default",
"comment": "",
"value": "default",
"flags": []
"value": "",
"flags": [
"UserValue",
"UserRequired"
]
},
{
"name": "DelaySign",
......
......@@ -363,52 +363,13 @@
},
{
"name": "LangVersion",
"switch": "langversion:ISO-1",
"switch": "langversion:",
"comment": "",
"value": "ISO-1",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:ISO-2",
"comment": "",
"value": "ISO-2",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:3",
"comment": "",
"value": "3",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:4",
"comment": "",
"value": "4",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:5",
"comment": "",
"value": "5",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:6",
"comment": "",
"value": "6",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:default",
"comment": "",
"value": "default",
"flags": []
"value": "",
"flags": [
"UserValue",
"UserRequired"
]
},
{
"name": "DelaySign",
......
......@@ -381,52 +381,13 @@
},
{
"name": "LangVersion",
"switch": "langversion:ISO-1",
"switch": "langversion:",
"comment": "",
"value": "ISO-1",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:ISO-2",
"comment": "",
"value": "ISO-2",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:3",
"comment": "",
"value": "3",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:4",
"comment": "",
"value": "4",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:5",
"comment": "",
"value": "5",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:6",
"comment": "",
"value": "6",
"flags": []
},
{
"name": "LangVersion",
"switch": "langversion:default",
"comment": "",
"value": "default",
"flags": []
"value": "",
"flags": [
"UserValue",
"UserRequired"
]
},
{
"name": "DelaySign",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment