mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2026-02-17 14:28:25 +08:00
Merge branch 'main' into plc-status
# Conflicts: # S7.Net.UnitTest/S7.Net.UnitTest.csproj
This commit is contained in:
15
.github/workflows/dotnet.yml
vendored
15
.github/workflows/dotnet.yml
vendored
@@ -71,14 +71,14 @@ jobs:
|
||||
artifacts: ${{ github.workspace }}/artifacts
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-22.04, macos-latest]
|
||||
os: [windows-latest, ubuntu-20.04, macos-latest]
|
||||
test-framework: [net6.0, net7.0]
|
||||
include:
|
||||
- os: ubuntu-22.04
|
||||
- os: ubuntu-20.04
|
||||
test-framework: net6.0
|
||||
installSnap7: true
|
||||
dotnet-sdk: '6.x'
|
||||
- os: ubuntu-22.04
|
||||
- os: ubuntu-20.04
|
||||
test-framework: net7.0
|
||||
installSnap7: true
|
||||
dotnet-sdk: '7.x'
|
||||
@@ -119,7 +119,9 @@ jobs:
|
||||
- name: Setup Dotnet
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: ${{ matrix.dotnet-sdk }}
|
||||
dotnet-version: |
|
||||
${{ matrix.dotnet-sdk }}
|
||||
7.x
|
||||
|
||||
- name: Nuget Cache
|
||||
uses: actions/cache@v2
|
||||
@@ -129,12 +131,9 @@ jobs:
|
||||
key: ${{ runner.os }}-${{ matrix.test-framework }}-nuget-${{ hashFiles('**/packages.lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-${{ matrix.test-framework }}-nuget
|
||||
|
||||
- name: Restore
|
||||
run: dotnet restore S7.Net.UnitTest
|
||||
|
||||
- name: Test
|
||||
run: dotnet test --no-restore --nologo --verbosity normal --logger GitHubActions --framework ${{ matrix.test-framework }}
|
||||
run: dotnet test --nologo --verbosity normal --logger GitHubActions --framework ${{ matrix.test-framework }}
|
||||
|
||||
deploy:
|
||||
# Publish only when creating a GitHub Release
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net462;net6.0</TargetFrameworks>
|
||||
<TargetFrameworks>net462;net6.0;net7.0</TargetFrameworks>
|
||||
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>Properties\S7.Net.snk</AssemblyOriginatorKeyFile>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net452;netstandard2.0;netstandard1.3;net5.0</TargetFrameworks>
|
||||
<TargetFrameworks>net452;net462;netstandard2.0;netstandard1.3;net5.0;net6.0;net7.0</TargetFrameworks>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>Properties\S7.Net.snk</AssemblyOriginatorKeyFile>
|
||||
<InternalsVisibleTo>S7.Net.UnitTest</InternalsVisibleTo>
|
||||
@@ -23,11 +23,11 @@
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net452' Or '$(TargetFramework)' == 'netstandard2.0' ">
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net452' Or '$(TargetFramework)' == 'net462' Or '$(TargetFramework)' == 'netstandard2.0' ">
|
||||
<DefineConstants>NET_FULL</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' != 'net5.0'">
|
||||
<ItemGroup Condition="'$(TargetFramework)' != 'net5.0' And '$(TargetFramework)' != 'net6.0' And '$(TargetFramework)' != 'net7.0'">
|
||||
<PackageReference Include="System.Memory" Version="4.5.5" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user