Skip to content

Commit 51c7741

Browse files
committed
Comms: exclude WinUSB on non-Windows
1 parent 5506e85 commit 51c7741

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ExtLibs/Comms/MissionPlanner.Comms.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<Compile Remove="System.IO.Ports\**" />
2525
<EmbeddedResource Remove="System.IO.Ports\**" />
2626
<None Remove="System.IO.Ports\**" />
27+
<Compile Remove="CommsWinUSB.cs" Condition="'$(OS)' != 'Windows_NT'" />
2728
</ItemGroup>
2829

2930
<ItemGroup>
@@ -44,7 +45,7 @@
4445

4546
<ItemGroup>
4647
<ProjectReference Include="..\Interfaces\Interfaces.csproj" />
47-
<ProjectReference Include="..\WinUSBNet\Nefarius.Drivers.WinUSB.csproj" />
48+
<ProjectReference Include="..\WinUSBNet\Nefarius.Drivers.WinUSB.csproj" Condition="'$(OS)' == 'Windows_NT'" />
4849
</ItemGroup>
4950

5051
<ItemGroup>

0 commit comments

Comments
 (0)