From 78bf6e63eda5e6265108639a18edd2cbbe9a0a7b Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 7 May 2020 13:03:24 -0700 Subject: [PATCH] Wrap last incompatible .NET Core stuff --- DICUI.Library/Utilities/Validators.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DICUI.Library/Utilities/Validators.cs b/DICUI.Library/Utilities/Validators.cs index e3cc65ef..3c728e87 100644 --- a/DICUI.Library/Utilities/Validators.cs +++ b/DICUI.Library/Utilities/Validators.cs @@ -1004,6 +1004,7 @@ namespace DICUI.Utilities /// Copy protection detected in the envirionment, if any public static async Task RunProtectionScanOnPath(string path) { +#if NET_FRAMEWORK try { var found = await Task.Run(() => @@ -1021,6 +1022,9 @@ namespace DICUI.Utilities { return $"Path could not be scanned! {ex}"; } +#else + return "Copy protection scanning is not available on .NET Core builds"; +#endif } } }