Skip to content

Commit ac2ed6c

Browse files
chore: move to windows only
1 parent 5ed2ea2 commit ac2ed6c

File tree

5 files changed

+4
-10
lines changed

5 files changed

+4
-10
lines changed

src/ChromaControl.SDK.OpenRGB.Sample/ChromaControl.SDK.OpenRGB.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Worker">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net8.0-windows10.0.22000.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

src/ChromaControl.SDK.OpenRGB/ChromaControl.SDK.OpenRGB.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net8.0-windows10.0.22000.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

src/ChromaControl.SDK.OpenRGB/Internal/Windows/Job.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ private static unsafe SafeFileHandle CreateJob()
3232
nLength = (uint)Marshal.SizeOf(typeof(SECURITY_ATTRIBUTES))
3333
};
3434

35-
#pragma warning disable CA1416 // Validate platform compatibility
3635
var jobHandle = PInvoke.CreateJobObject(securityAttributes, "ChromaControl.SDK.OpenRGB");
37-
#pragma warning restore CA1416 // Validate platform compatibility
3836

3937
if (jobHandle.IsInvalid)
4038
{
@@ -60,9 +58,7 @@ private static unsafe void SetJobInfo(SafeFileHandle jobHandle)
6058

6159
var infoSize = (uint)Marshal.SizeOf<JOBOBJECT_EXTENDED_LIMIT_INFORMATION>();
6260

63-
#pragma warning disable CA1416 // Validate platform compatibility
6461
var setInfoResult = PInvoke.SetInformationJobObject(jobHandle, JOBOBJECTINFOCLASS.JobObjectExtendedLimitInformation, &info, infoSize);
65-
#pragma warning restore CA1416 // Validate platform compatibility
6662

6763
if (!setInfoResult)
6864
{
@@ -73,9 +69,7 @@ private static unsafe void SetJobInfo(SafeFileHandle jobHandle)
7369

7470
public void AssignProcess(Process process)
7571
{
76-
#pragma warning disable CA1416 // Validate platform compatibility
7772
var assignProcessResult = PInvoke.AssignProcessToJobObject(_jobHandle, process.SafeHandle);
78-
#pragma warning restore CA1416 // Validate platform compatibility
7973

8074
if (!assignProcessResult)
8175
{

src/ChromaControl.SDK.Synapse.Sample/ChromaControl.SDK.Synapse.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Worker">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net8.0-windows10.0.22000.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

src/ChromaControl.SDK.Synapse/ChromaControl.SDK.Synapse.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net8.0-windows10.0.22000.0</TargetFramework>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
</PropertyGroup>
77

0 commit comments

Comments
 (0)