mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Detect Option Strict for VB projects
This commit is contained in:
@@ -232,13 +232,15 @@ void printProjectWarnings(PortInfo info) {
|
|||||||
nullable,
|
nullable,
|
||||||
implicitUsing,
|
implicitUsing,
|
||||||
rootNamespace,
|
rootNamespace,
|
||||||
langVersion
|
langVersion,
|
||||||
|
optionStrict
|
||||||
) = (
|
) = (
|
||||||
getValue(parent, "TargetFramework", "TargetFrameworks"),
|
getValue(parent, "TargetFramework", "TargetFrameworks"),
|
||||||
getValue(parent, "Nullable"),
|
getValue(parent, "Nullable"),
|
||||||
getValue(parent, "ImplicitUsings"),
|
getValue(parent, "ImplicitUsings"),
|
||||||
getValue(parent, "RootNamespace"),
|
getValue(parent, "RootNamespace"),
|
||||||
getValue(parent, "LangVersion")
|
getValue(parent, "LangVersion"),
|
||||||
|
getValue(parent, "OptionStrict")
|
||||||
);
|
);
|
||||||
|
|
||||||
if (framework != "net6.0") {
|
if (framework != "net6.0") {
|
||||||
@@ -267,6 +269,9 @@ void printProjectWarnings(PortInfo info) {
|
|||||||
if (langVersion != "16.9") {
|
if (langVersion != "16.9") {
|
||||||
warnings.Add($"LangVersion: {langVersion}");
|
warnings.Add($"LangVersion: {langVersion}");
|
||||||
}
|
}
|
||||||
|
if (optionStrict != "On") {
|
||||||
|
warnings.Add($"OptionStrict: {optionStrict}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (warnings.Any()) {
|
if (warnings.Any()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user