mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2026-02-17 14:28:25 +08:00
- Add netcoreapp3.1 target framework, allowing this to run on linux and macos as well. - Switch windows snap7 DLL to 64bit version 1.4.2. This also improves UnitTest stability (reduces false positives) on the CI (including appveyor) - Changing the port used for S7NetTests when communicating with Snap7 to a value > 1000 allows tests to run on Linux without elevated privileges.
38 lines
1.3 KiB
XML
38 lines
1.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net452;netcoreapp3.1</TargetFrameworks>
|
|
|
|
<SignAssembly>true</SignAssembly>
|
|
<AssemblyOriginatorKeyFile>Properties\S7.Net.snk</AssemblyOriginatorKeyFile>
|
|
<IsPackable>false</IsPackable>
|
|
<Copyright>Copyright © 2014</Copyright>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="GitHubActionsTestLogger" Version="1.1.0" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.0" />
|
|
<PackageReference Include="MSTest.TestAdapter" Version="2.1.2" />
|
|
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" />
|
|
<PackageReference Include="coverlet.collector" Version="1.3.0">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\S7.Net\S7.Net.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework)'=='net452'">
|
|
<Reference Include="System.ServiceProcess" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Update="runtimes\win-x64\native\snap7.dll" Link="snap7.dll">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
</Project>
|