Skip to content

Commit 0c4f2f6

Browse files
authored
Strongly-name assemblies for legacy compatibility, #41 (#42)
1 parent f67ff06 commit 0c4f2f6

File tree

13 files changed

+33
-87
lines changed

13 files changed

+33
-87
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/dotnet.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ on:
88

99
jobs:
1010
build:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macos-latest, windows-latest]
1114

12-
runs-on: ubuntu-latest
15+
runs-on: ${{ matrix.os }}
1316

1417
steps:
1518
- uses: actions/checkout@v2
16-
- name: Setup .NET 6
17-
uses: actions/setup-dotnet@v1
19+
- name: Setup .NET SDKs
20+
uses: actions/setup-dotnet@v5
1821
with:
19-
dotnet-version: 6.0.x
20-
- name: Setup .NET 8
21-
uses: actions/setup-dotnet@v1
22-
with:
23-
dotnet-version: 8.0.x
22+
dotnet-version: |
23+
10.0.x
24+
9.0.x
25+
8.0.x
2426
- name: Restore dependencies
2527
run: dotnet restore
2628
- name: Build

Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project>
2+
<PropertyGroup Label="Assembly signing">
3+
<AssemblyOriginatorKeyFile>$(SolutionDir)StringSimilarity.NET.snk</AssemblyOriginatorKeyFile>
4+
<SignAssembly>true</SignAssembly>
5+
</PropertyGroup>
6+
</Project>

F23.StringSimilarity.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "F23.StringSimilarity", "src
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "F23.StringSimilarity.Tests", "test\F23.StringSimilarity.Tests\F23.StringSimilarity.Tests.csproj", "{68F339E6-278F-4B04-A6ED-422AAD30591F}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "F23.StringSimilarity.Benchmarks", "F23.StringSimilarity.Benchmarks\F23.StringSimilarity.Benchmarks.csproj", "{3A9605B1-820C-43C2-8F9B-72BCA5F5543B}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "F23.StringSimilarity.Benchmarks", "test\F23.StringSimilarity.Benchmarks\F23.StringSimilarity.Benchmarks.csproj", "{3A9605B1-820C-43C2-8F9B-72BCA5F5543B}"
1111
EndProject
1212
Global
1313
GlobalSection(SolutionConfigurationPlatforms) = preSolution

StringSimilarity.NET.snk

596 Bytes
Binary file not shown.

src/Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<Project>
2+
<!-- include parent folder props -->
3+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
4+
</Project>

src/F23.StringSimilarity/F23.StringSimilarity.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
</PropertyGroup>
2121
<ItemGroup>
2222
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
23-
<PackageReference Include="System.Memory" Version="4.5.4" />
23+
<PackageReference Include="System.Memory" Version="4.6.3" />
2424
</ItemGroup>
2525
<ItemGroup>
2626
<None Include="logo.png" Pack="true" PackagePath="\" />
2727
</ItemGroup>
2828
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
2929
<DocumentationFile>bin\Release\netstandard2.0\F23.StringSimilarity.xml</DocumentationFile>
3030
</PropertyGroup>
31-
</Project>
31+
</Project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
using System.Runtime.CompilerServices;
22

3-
[assembly: InternalsVisibleTo("F23.StringSimilarity.Tests")]
3+
[assembly: InternalsVisibleTo("F23.StringSimilarity.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b9a3cf7cbdb26a91b8a50d70ec052fe9f1edd3d1989e1079d0b0c1930e2030273a82629e18c7f2932a1e7957d48ec36b2703cda7bab46f3a0684cc86637e02dac24c857a43ef9a63a6459b147d11ec43b75b181de0aa326931ae13ba31c06977b309424c730d895144feab54da5ad84a604f90b2d672406177782027c8413caa")]

test/Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<Project>
2+
<!-- include parent folder props -->
3+
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
4+
</Project>
File renamed without changes.

0 commit comments

Comments
 (0)