PreVerify

This commit is contained in:
Mike Phares 2024-04-09 12:33:14 -07:00
parent 7cf1d5771f
commit b65bf9f639
2 changed files with 5 additions and 2 deletions

4
.vscode/tasks.json vendored
View File

@ -166,13 +166,13 @@
"type": "shell" "type": "shell"
}, },
{ {
"command": "& L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net7.0/win-x64/publish/File-Folder-Helper.exe .kanbn", "command": "& L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net8.0/win-x64/publish/File-Folder-Helper.exe .kanbn",
"label": "File-Folder-Helper AOT s Set metadata", "label": "File-Folder-Helper AOT s Set metadata",
"problemMatcher": [], "problemMatcher": [],
"type": "shell" "type": "shell"
}, },
{ {
"command": "& L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net7.0/win-x64/publish/File-Folder-Helper.exe s M .kanbn/tasks", "command": "& L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net8.0/win-x64/publish/File-Folder-Helper.exe s M L:/DevOps/Mesa_FI/Barcode-Host -s L:/DevOps/Mesa_FI/Barcode-Host/.kanbn/tasks",
"label": "File-Folder-Helper AOT s M tasks", "label": "File-Folder-Helper AOT s M tasks",
"problemMatcher": [], "problemMatcher": [],
"type": "shell" "type": "shell"

View File

@ -101,7 +101,10 @@ public class AppSettings
public static Models.AppSettings Get(IConfigurationRoot configurationRoot) public static Models.AppSettings Get(IConfigurationRoot configurationRoot)
{ {
Models.AppSettings result; Models.AppSettings result;
#pragma warning disable IL3050, IL2026
AppSettings? appSettings = configurationRoot.Get<AppSettings>(); AppSettings? appSettings = configurationRoot.Get<AppSettings>();
#pragma warning restore IL3050, IL2026
PreVerify(configurationRoot, appSettings);
result = Get(appSettings); result = Get(appSettings);
return result; return result;
} }