From 471c3e0803a9f40a0acc8aeceb31de6ff93a52c4 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Tue, 20 Mar 2012 19:33:07 +1300 Subject: [PATCH] -Fixed Metro build --- Src/Newtonsoft.Json/Serialization/JsonTypeReflector.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Newtonsoft.Json/Serialization/JsonTypeReflector.cs b/Src/Newtonsoft.Json/Serialization/JsonTypeReflector.cs index 7ec74474..f546978e 100644 --- a/Src/Newtonsoft.Json/Serialization/JsonTypeReflector.cs +++ b/Src/Newtonsoft.Json/Serialization/JsonTypeReflector.cs @@ -403,7 +403,9 @@ namespace Newtonsoft.Json.Serialization { if (_fullyTrusted == null) { -#if !(NET20 || NET35 || SILVERLIGHT || NETFX_CORE) +#if (NETFX_CORE || SILVERLIGHT) + _fullyTrusted = false; +#elif !(NET20 || NET35) AppDomain appDomain = AppDomain.CurrentDomain; _fullyTrusted = appDomain.IsHomogenous && appDomain.IsFullyTrusted;