Skip to content

Commit 6758d2d

Browse files
committed
Publish a platform-neutral .NET tool
1 parent 33f4b2f commit 6758d2d

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

src/SeqCli/SeqCli.csproj

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,12 @@
1616
<EnableDefaultContentItems>false</EnableDefaultContentItems>
1717
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>
1818
<EnableDefaultNoneItems>false</EnableDefaultNoneItems>
19-
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
20-
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
21-
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
2219
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
20+
<IsWindows Condition="'$(TargetFramework)' == 'net9.0-windows'">true</IsWindows>
2321
</PropertyGroup>
2422
<PropertyGroup Condition="'$(IsWindows)'=='true'">
2523
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
2624
</PropertyGroup>
27-
<PropertyGroup Condition="'$(IsOSX)'=='true'">
28-
<DefineConstants>$(DefineConstants);OSX</DefineConstants>
29-
</PropertyGroup>
30-
<PropertyGroup Condition="'$(IsLinux)'=='true'">
31-
<DefineConstants>$(DefineConstants);LINUX</DefineConstants>
32-
</PropertyGroup>
3325
<PropertyGroup Condition="'$(IsWindows)'!='true'">
3426
<DefineConstants>$(DefineConstants);UNIX</DefineConstants>
3527
</PropertyGroup>

test/SeqCli.Tests/SeqCli.Tests.csproj

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,11 @@
22
<PropertyGroup>
33
<TargetFrameworks>net9.0</TargetFrameworks>
44
<TargetFrameworks Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">$(TargetFrameworks);net9.0-windows</TargetFrameworks>
5-
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
6-
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
7-
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
5+
<IsWindows Condition="'$(TargetFramework)' == 'net9.0-windows'">true</IsWindows>
86
</PropertyGroup>
97
<PropertyGroup Condition="'$(IsWindows)'=='true'">
108
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
119
</PropertyGroup>
12-
<PropertyGroup Condition="'$(IsOSX)'=='true'">
13-
<DefineConstants>$(DefineConstants);OSX</DefineConstants>
14-
</PropertyGroup>
15-
<PropertyGroup Condition="'$(IsLinux)'=='true'">
16-
<DefineConstants>$(DefineConstants);LINUX</DefineConstants>
17-
</PropertyGroup>
1810
<PropertyGroup Condition="'$(IsWindows)'!='true'">
1911
<DefineConstants>$(DefineConstants);UNIX</DefineConstants>
2012
</PropertyGroup>

0 commit comments

Comments
 (0)