Wrap last incompatible .NET Core stuff

This commit is contained in:
Matt Nadareski
2020-05-07 13:03:24 -07:00
parent 68e0d759f7
commit 78bf6e63ed

View File

@@ -1004,6 +1004,7 @@ namespace DICUI.Utilities
/// <returns>Copy protection detected in the envirionment, if any</returns>
public static async Task<string> 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
}
}
}