Move OS detection to common and PowerToysInterop (#5120)

* Remove os-detection project

* Removed os-detection project from sln

* Added os-detection to PowerToysInterop

* Removed references to os-detection and added PowerToysInterop.dll to the ImageResizer folder
This commit is contained in:
Arjun Balgovind
2020-07-21 12:01:59 -07:00
committed by GitHub
parent b31d9761fa
commit d01b93ae5f
23 changed files with 37 additions and 274 deletions

View File

@@ -7,7 +7,9 @@ namespace ImageResizer.Models
{
public class AdvancedSettings
{
[DllImport("../../os-detection.dll", EntryPoint = "UseNewSettings", ExactSpelling = false)]
public static extern bool UseNewSettings();
public static bool UseNewSettings()
{
return interop.CommonManaged.ShouldNewSettingsBeUsed();
}
}
}