GeezerVison is showing github.com — Add .NET 7 and remove .NET Core 3.1 · UiPath/libgit2sharp@b5bb4d5
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/ci.yml +9-12Lines changed: 9 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 21 | 21 | - name: Install .NET SDK | 22 | 22 | | 23 | 23 | with: | 24 | | - dotnet-version: 6.0.x | | 24 | + dotnet-version: 7.0.x | 25 | 25 | - name: Build | 26 | 26 | run: dotnet build LibGit2Sharp.sln --configuration Release | 27 | 27 | - name: Upload packages | | 36 | 36 | strategy: | 37 | 37 | matrix: | 38 | 38 | arch: [ amd64 ] | 39 | | - os: [windows-2019, macos-10.15] | 40 | | - tfm: [ net472, netcoreapp3.1, net6.0 ] | | 39 | + os: [ windows-2019, macos-10.15 ] | | 40 | + tfm: [ net472, net6.0, net7.0 ] | 41 | 41 | exclude: | 42 | 42 | - os: macos-10.15 | 43 | 43 | tfm: net472 | | 50 | 50 | - name: Install .NET SDK | 51 | 51 | | 52 | 52 | with: | 53 | | - dotnet-version: 6.0.x | 54 | | - - name: Install .NET Core 3.1 runtime | 55 | | - if: matrix.tfm == 'netcoreapp3.1' | 56 | | - | 57 | | - with: | 58 | | - dotnet-version: 3.1.x | | 53 | + dotnet-version: | | | 54 | + 7.0.x | | 55 | + 6.0.x | 59 | 56 | - name: Run ${{ matrix.tfm }} tests | 60 | 57 | run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING | 61 | 58 | test-linux: | | 66 | 63 | arch: [ amd64 ] | 67 | 64 | # arch: [ amd64, arm64 ] | 68 | 65 | distro: [ alpine.3.12, alpine.3.13, alpine.3.14, centos.7, centos.8, debian.9, debian.10, debian.11, fedora.33, ubuntu.18.04, ubuntu.20.04 ] | 69 | | - sdk: [ '6.0', '3.1' ] | | 66 | + sdk: [ '6.0', '7.0' ] | 70 | 67 | exclude: | 71 | 68 | - arch: arm64 | 72 | 69 | distro: alpine.3.12 | | 81 | 78 | include: | 82 | 79 | - sdk: '6.0' | 83 | 80 | tfm: net6.0 | 84 | | - - sdk: '3.1' | 85 | | - tfm: netcoreapp3.1 | | 81 | + - sdk: '7.0' | | 82 | + tfm: net7.0 | 86 | 83 | fail-fast: false | 87 | 84 | steps: | 88 | 85 | - name: Checkout | |
Collapse file Copy file name to clipboardExpand all lines: LibGit2Sharp.Tests/BlobFixture.cs +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -45,7 +45,7 @@ public void CanGetBlobAsFilteredText(string autocrlf, string expectedText) | 45 | 45 | } | 46 | 46 | } | 47 | 47 |
| 48 | | -#if NETFRAMEWORK || NETCOREAPP3_1 //UTF-7 is disabled in .NET 5+ | | 48 | +#if NETFRAMEWORK //UTF-7 is disabled in .NET 5+ | 49 | 49 | [Theory] | 50 | 50 | [InlineData("ascii", 4, "31 32 33 34")] | 51 | 51 | [InlineData("utf-7", 4, "31 32 33 34")] | @@ -239,11 +239,11 @@ public void CanTellIfABlobIsMissing() | 239 | 239 | // Manually delete the objects directory to simulate a partial clone | 240 | 240 | Directory.Delete(Path.Combine(repoPath, "objects", "a8"), true); | 241 | 241 |
| 242 | | - using (var repo = new Repository(repoPath)) | | 242 | + using (var repo = new Repository(repoPath)) | 243 | 243 | { | 244 | 244 | // Look up for the tree that reference the blob which is now missing | 245 | 245 | var tree = repo.Lookup<Tree>("fd093bff70906175335656e6ce6ae05783708765"); | 246 | | - var blob = (Blob) tree["README"].Target; | | 246 | + var blob = (Blob)tree["README"].Target; | 247 | 247 |
| 248 | 248 | Assert.Equal("a8233120f6ad708f843d861ce2b7228ec4e3dec6", blob.Sha); | 249 | 249 | Assert.NotNull(blob); | |
Collapse file Copy file name to clipboardExpand all lines: LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> | 2 | 2 |
| 3 | 3 | <PropertyGroup> | 4 | | - <TargetFrameworks Condition="'$(TargetFrameworks)'==''">net472;netcoreapp3.1;net6.0</TargetFrameworks> | | 4 | + <TargetFrameworks Condition="'$(TargetFrameworks)'==''">net472;net6.0;net7.0</TargetFrameworks> | 5 | 5 | </PropertyGroup> | 6 | 6 |
| 7 | 7 | <ItemGroup> | |
Collapse file Copy file name to clipboardExpand all lines: LibGit2Sharp/LibGit2Sharp.csproj +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> | 2 | 2 |
| 3 | 3 | <PropertyGroup> | 4 | | - <TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks> | | 4 | + <TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks> | 5 | 5 | <GenerateDocumentationFile>true</GenerateDocumentationFile> | 6 | 6 | <Description>LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .NET</Description> | 7 | 7 | <Company>LibGit2Sharp contributors</Company> | |
|