Skip to content

Commit 408f435

Browse files
authored
Merge pull request #1421 from Unity-Technologies/unity-master-new-unitychanges-remove-netstandard-dep-system-web
Move HttpUtility to System in unityjit.
2 parents b5b592e + 7c80e05 commit 408f435

File tree

11 files changed

+30
-4
lines changed

11 files changed

+30
-4
lines changed

mcs/class/System.Web/Assembly/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
[assembly: WebResource ("WebUIValidation_2.0.js", "text/javascript")]
141141
#endif
142142

143-
#if UNITY_AOT && FULL_AOT_RUNTIME
143+
#if (UNITY_AOT && FULL_AOT_RUNTIME) || UNITY_JIT
144144
[assembly: TypeForwardedTo (typeof (System.Web.HttpUtility))]
145145
[assembly: TypeForwardedTo (typeof (System.Web.Util.HttpEncoder))]
146146
#endif

mcs/class/System.Web/System.Web.Compilation/BaseCompiler.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
using System.Web.Configuration;
4040
using System.IO;
4141

42+
#if UNITY_JIT
43+
using Compiler=System.Web.Configuration.Compiler;
44+
#endif
45+
4246
namespace System.Web.Compilation
4347
{
4448
abstract class BaseCompiler

mcs/class/System.Web/System.Web.Compilation/BuildManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
using System.Web.Util;
5050
using System.Runtime.Versioning;
5151

52+
#if UNITY_JIT
53+
using Compiler=System.Web.Configuration.Compiler;
54+
#endif
55+
5256
namespace System.Web.Compilation
5357
{
5458
public sealed class BuildManager

mcs/class/System.Web/System.Web.Util/HttpEncoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
using System.Configuration;
3636
using System.IO;
3737
using System.Text;
38-
#if !NO_SYSTEM_WEB_DEPENDENCY && !MOBILE
38+
#if !NO_SYSTEM_WEB_DEPENDENCY && !MOBILE && !UNITY_JIT
3939
using System.Web.Configuration;
4040
#endif
4141

@@ -163,7 +163,7 @@ protected internal virtual byte[] UrlEncode (byte[] bytes, int offset, int count
163163

164164
static HttpEncoder GetCustomEncoderFromConfig ()
165165
{
166-
#if MOBILE || NO_SYSTEM_WEB_DEPENDENCY
166+
#if MOBILE || NO_SYSTEM_WEB_DEPENDENCY || UNITY_JIT
167167
return defaultEncoder.Value;
168168
#else
169169
var cfg = HttpRuntime.Section;

mcs/class/System.Web/System.Web/HttpUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ public static string HtmlEncode (object value)
511511
if (value == null)
512512
return null;
513513

514-
#if !(MOBILE || NO_SYSTEM_WEB_DEPENDENCY)
514+
#if !(MOBILE || NO_SYSTEM_WEB_DEPENDENCY || UNITY_JIT)
515515
IHtmlString htmlString = value as IHtmlString;
516516
if (htmlString != null)
517517
return htmlString.ToHtmlString ();
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
System.Web/HttpUtility.cs
2+
System.Web.Util/Helpers.cs
3+
System.Web.Util/HttpEncoder.cs
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include System.Web.dll.sources

mcs/class/System/Assembly/AssemblyInfo.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,8 @@
9898
[assembly: TypeForwardedTo (typeof (System.Collections.Generic.Queue<>))]
9999
[assembly: TypeForwardedTo (typeof (System.IO.Enumeration.FileSystemName))]
100100
[assembly: TypeForwardedTo (typeof (System.Security.Cryptography.CryptographicOperations))]
101+
102+
#if UNITY_JIT
103+
[assembly: InternalsVisibleTo ("System.Web, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")]
104+
#endif
105+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
#include linux_net_4_x_System.dll.sources
2+
../System.Web/System.Web/HttpUtility.cs
3+
../System.Web/System.Web.Util/Helpers.cs
4+
../System.Web/System.Web.Util/HttpEncoder.cs
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
#include macos_net_4_x_System.dll.sources
2+
../System.Web/System.Web/HttpUtility.cs
3+
../System.Web/System.Web.Util/Helpers.cs
4+
../System.Web/System.Web.Util/HttpEncoder.cs

0 commit comments

Comments
 (0)