GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add .NET 7 and remove .NET Core 3.1 · UiPath/libgit2sharp@b5bb4d5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci.yml
  • LibGit2Sharp.Tests
    • BlobFixture.cs
    • LibGit2Sharp.Tests.csproj
  • LibGit2Sharp
    • LibGit2Sharp.csproj
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+9-12Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install .NET SDK
2222
uses: actions/[email protected]
2323
with:
24-
dotnet-version: 6.0.x
24+
dotnet-version: 7.0.x
2525
- name: Build
2626
run: dotnet build LibGit2Sharp.sln --configuration Release
2727
- name: Upload packages
@@ -36,8 +36,8 @@ jobs:
3636
strategy:
3737
matrix:
3838
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 ]
4141
exclude:
4242
- os: macos-10.15
4343
tfm: net472
@@ -50,12 +50,9 @@ jobs:
5050
- name: Install .NET SDK
5151
uses: actions/[email protected]
5252
with:
53-
dotnet-version: 6.0.x
54-
- name: Install .NET Core 3.1 runtime
55-
if: matrix.tfm == 'netcoreapp3.1'
56-
uses: actions/[email protected]
57-
with:
58-
dotnet-version: 3.1.x
53+
dotnet-version: |
54+
7.0.x
55+
6.0.x
5956
- name: Run ${{ matrix.tfm }} tests
6057
run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
6158
test-linux:
@@ -66,7 +63,7 @@ jobs:
6663
arch: [ amd64 ]
6764
# arch: [ amd64, arm64 ]
6865
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' ]
7067
exclude:
7168
- arch: arm64
7269
distro: alpine.3.12
@@ -81,8 +78,8 @@ jobs:
8178
include:
8279
- sdk: '6.0'
8380
tfm: net6.0
84-
- sdk: '3.1'
85-
tfm: netcoreapp3.1
81+
- sdk: '7.0'
82+
tfm: net7.0
8683
fail-fast: false
8784
steps:
8885
- name: Checkout
Collapse file

‎LibGit2Sharp.Tests/BlobFixture.cs‎

Copy file name to clipboardExpand all lines: LibGit2Sharp.Tests/BlobFixture.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void CanGetBlobAsFilteredText(string autocrlf, string expectedText)
4545
}
4646
}
4747

48-
#if NETFRAMEWORK || NETCOREAPP3_1 //UTF-7 is disabled in .NET 5+
48+
#if NETFRAMEWORK //UTF-7 is disabled in .NET 5+
4949
[Theory]
5050
[InlineData("ascii", 4, "31 32 33 34")]
5151
[InlineData("utf-7", 4, "31 32 33 34")]
@@ -239,11 +239,11 @@ public void CanTellIfABlobIsMissing()
239239
// Manually delete the objects directory to simulate a partial clone
240240
Directory.Delete(Path.Combine(repoPath, "objects", "a8"), true);
241241

242-
using (var repo = new Repository(repoPath))
242+
using (var repo = new Repository(repoPath))
243243
{
244244
// Look up for the tree that reference the blob which is now missing
245245
var tree = repo.Lookup<Tree>("fd093bff70906175335656e6ce6ae05783708765");
246-
var blob = (Blob) tree["README"].Target;
246+
var blob = (Blob)tree["README"].Target;
247247

248248
Assert.Equal("a8233120f6ad708f843d861ce2b7228ec4e3dec6", blob.Sha);
249249
Assert.NotNull(blob);
Collapse file

‎LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj‎

Copy file name to clipboardExpand all lines: LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)'==''">net472;netcoreapp3.1;net6.0</TargetFrameworks>
4+
<TargetFrameworks Condition="'$(TargetFrameworks)'==''">net472;net6.0;net7.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>
Collapse file

‎LibGit2Sharp/LibGit2Sharp.csproj‎

Copy file name to clipboardExpand all lines: LibGit2Sharp/LibGit2Sharp.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
55
<GenerateDocumentationFile>true</GenerateDocumentationFile>
66
<Description>LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .NET</Description>
77
<Company>LibGit2Sharp contributors</Company>

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.