Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 85b1ed7

Browse files
committed
need to add back onlyInDebugType
1 parent e31787c commit 85b1ed7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ServiceStack.Text/Env.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ private static bool IsRunningAsUwp()
190190
try
191191
{
192192
IsNetNative = System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.StartsWith(".NET Native", StringComparison.OrdinalIgnoreCase);
193-
return IsInAppContainer || IsNetNative;
193+
var onlyInDebugType = Type.GetType("System.Runtime.InteropServices.WindowsRuntime.IActivationFactory,System.Runtime.InteropServices.WindowsRuntime");
194+
return IsInAppContainer || IsNetNative || onlyInDebugType != null;
194195
}
195196
catch (Exception) {}
196197
return false;

0 commit comments

Comments
 (0)