Skip to content

Commit

Permalink
Updated to use System.Runtime.InteropServices.RuntimeInformation inst…
Browse files Browse the repository at this point in the history
…ead of Microsoft.Windows.Compatibility in order to be compliant on older framework versions
  • Loading branch information
PatrickRitchie committed Jun 22, 2022
1 parent 05d0bae commit 82f66da
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,21 @@
<None Include="Program-old.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="NLog" Version="4.7.14" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Debug'">
<ProjectReference Include="..\..\..\src\MTConnect.NET\MTConnect.NET.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Release'">
<ProjectReference Include="..\..\..\src\MTConnect.NET\MTConnect.NET.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Docker'">
<PackageReference Include="MTConnect.NET" Version="3.4.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\MTConnect.NET\MTConnect.NET.csproj" />
<PackageReference Include="NLog" Version="4.7.14" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@
<Product>TrakHound MTConnect Http Agent</Product>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Windows.Compatibility" Version="6.0.0" />
<PackageReference Include="NLog" Version="4.7.14" />
<ItemGroup Condition="'$(Configuration)'=='Debug'">
<ProjectReference Include="..\..\..\src\MTConnect.NET\MTConnect.NET.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="NLog" Version="5.0.0" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Release'">
<ProjectReference Include="..\..\..\src\MTConnect.NET\MTConnect.NET.csproj" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\MTConnect.NET\MTConnect.NET.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Docker'">
<PackageReference Include="MTConnect.NET" Version="3.4.2" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="NLog" Version="4.7.14" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
<Compile Update="Service.cs">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Windows.Compatibility" Version="6.0.0" />
<PackageReference Include="NLog" Version="4.7.14" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 82f66da

Please sign in to comment.