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:
@@ -10,7 +10,7 @@
|
||||
|
||||
<DefineConstants>$(DefineConstants);OPENZUNE</DefineConstants>
|
||||
|
||||
<TargetFrameworks>net461;net6.0;net6.0-windows10.0.22000</TargetFrameworks>
|
||||
<TargetFrameworks>net8.0</TargetFrameworks>
|
||||
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||
|
||||
<!--<SignAssembly>True</SignAssembly>
|
||||
@@ -18,6 +18,10 @@
|
||||
<DelaySign>True</DelaySign>-->
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" $([MSBuild]::IsOsPlatform('Windows')) ">
|
||||
<TargetFrameworks>$(TargetFrameworks);net461;net8.0-windows10.0.22000</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<Choose>
|
||||
<When Condition=" $(TargetFramework.StartsWith('net6.0-windows')) ">
|
||||
<PropertyGroup>
|
||||
|
||||
@@ -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