diff --git a/Source/MTT/ConvertMain.cs b/Source/MTT/ConvertMain.cs index bd687c5..ea9a276 100755 --- a/Source/MTT/ConvertMain.cs +++ b/Source/MTT/ConvertMain.cs @@ -364,12 +364,13 @@ private string Find(string query, ModelFile file) { private bool isWindows() { #if NET46 - return Enviroment.OSVerison.Version.Major == "6.2" || Enviroment.OSVerison.Version.Major == "6.3"; //doesn't detect all windows but blame net46 + return Environment.OSVersion.Version.Major == 6.2 || Environment.OSVersion.Version.Major == 6.3; //doesn't detect all windows but blame net46 #else return GetOSPlatform() == OSPlatform.Windows; #endif } - + + #if !NET46 private OSPlatform GetOSPlatform() { OSPlatform osPlatform = OSPlatform.Create("Other Platform"); // Check if it's windows @@ -383,6 +384,7 @@ private OSPlatform GetOSPlatform() { osPlatform = isLinux ? OSPlatform.Linux : osPlatform; return osPlatform; } + #endif } } diff --git a/Source/MTT/MTT.csproj b/Source/MTT/MTT.csproj index 2049e06..b4118e5 100755 --- a/Source/MTT/MTT.csproj +++ b/Source/MTT/MTT.csproj @@ -1,7 +1,7 @@  - netstandard1.6;net471 + netstandard1.6;net46;net471 netstandard1.6 $(MSBuildThisFileDirectory)..\..\artifacts\