mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Allow compilation on Linux
This commit is contained in:
@@ -4,6 +4,7 @@ using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
#pragma warning disable SYSLIB0011
|
||||
|
||||
namespace Microsoft.Iris.Debug;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
#pragma warning disable SYSLIB0011
|
||||
|
||||
namespace Microsoft.Iris.Debug.Data;
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.IO;
|
||||
using System.Net.Sockets;
|
||||
using System.Runtime.Serialization;
|
||||
#pragma warning disable SYSLIB0011
|
||||
|
||||
namespace Microsoft.Iris.Debug;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Threading;
|
||||
#pragma warning disable SYSLIB0011
|
||||
|
||||
namespace Microsoft.Iris.Debug.SystemNet;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Net.Sockets;
|
||||
using System.Runtime.Serialization;
|
||||
#pragma warning disable SYSLIB0011
|
||||
|
||||
namespace Microsoft.Iris.Debug.SystemNet;
|
||||
|
||||
|
||||
@@ -8,7 +8,9 @@ using System.Security.Permissions;
|
||||
|
||||
namespace Microsoft.Iris.OS.CLR
|
||||
{
|
||||
#if WINDOWS
|
||||
[HostProtection(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
|
||||
#endif
|
||||
internal static class NativeMethods
|
||||
{
|
||||
public const int S_OK = 0;
|
||||
|
||||
@@ -13,7 +13,9 @@ using System.Security.Permissions;
|
||||
namespace Microsoft.Iris.OS.CLR
|
||||
{
|
||||
[SuppressUnmanagedCodeSecurity]
|
||||
#if WINDOWS
|
||||
[HostProtection(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
|
||||
#endif
|
||||
internal static class UnsafeNativeMethods
|
||||
{
|
||||
[DllImport("Ole32.dll")]
|
||||
|
||||
Reference in New Issue
Block a user