From e38997d85a1a13c5a9061daad7a0ddab134f08e1 Mon Sep 17 00:00:00 2001 From: Francois Keith Date: Mon, 25 Jan 2021 11:53:01 +0100 Subject: CSharp: Add 'debug:portable' to v142 flag table for VS --- Templates/MSBuild/FlagTables/v142_CSharp.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Templates/MSBuild/FlagTables/v142_CSharp.json b/Templates/MSBuild/FlagTables/v142_CSharp.json index 5989aea..9164849 100644 --- a/Templates/MSBuild/FlagTables/v142_CSharp.json +++ b/Templates/MSBuild/FlagTables/v142_CSharp.json @@ -201,6 +201,13 @@ "flags": [] }, { + "name": "DebugType", + "switch": "debug:portable", + "comment": "", + "value": "portable", + "flags": [] + }, + { "name": "Optimize", "switch": "optimize", "comment": "", -- cgit v0.12 From ee78391c093008d7ce9cbda4f5a7afe6d2816d41 Mon Sep 17 00:00:00 2001 From: Francois Keith Date: Mon, 25 Jan 2021 11:56:36 +0100 Subject: CSharp: Add 'warnaserror:...' to v142 flag table for VS This allows listing the warnings that must be flagged as errors. For example: target_compile_options(proj PRIVATE "/warnaserror:1998,4014") --- Templates/MSBuild/FlagTables/v142_CSharp.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Templates/MSBuild/FlagTables/v142_CSharp.json b/Templates/MSBuild/FlagTables/v142_CSharp.json index 9164849..4dcea9d 100644 --- a/Templates/MSBuild/FlagTables/v142_CSharp.json +++ b/Templates/MSBuild/FlagTables/v142_CSharp.json @@ -271,6 +271,17 @@ "flags": [] }, { + "name": "WarningsAsErrors", + "switch": "warnaserror:", + "comment": "", + "value": "", + "flags": [ + "UserValue", + "UserRequired", + "CommaAppendable" + ] + }, + { "name": "WarningLevel", "switch": "warn:0", "comment": "", -- cgit v0.12