diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml
index 0f1cb4c2a..3be3c3b56 100644
--- a/.github/workflows/mac.yml
+++ b/.github/workflows/mac.yml
@@ -18,7 +18,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 3.1.421
+ dotnet-version: 6.0.302
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Run unit tests
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 8da1372a0..bb0cde499 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -18,7 +18,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 3.1.421
+ dotnet-version: 6.0.302
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Run unit tests
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 29097c9d1..367e0103c 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -18,7 +18,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 3.1.421
+ dotnet-version: 6.0.302
- name: Clean
run: dotnet clean --configuration Release && dotnet nuget locals all --clear
diff --git a/Directory.Build.props b/Directory.Build.props
index 6d4915c6a..e489b3ebc 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -6,22 +6,9 @@
git
- net462;netcoreapp3.1
- net462;netstandard2.0
+ net6.0;net472
+ net6.0;netstandard2.0
latest
-
- full
-
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers
-
-
-
-
diff --git a/src/TaglibSharp.Tests/Collections/ByteVectorTest.cs b/src/TaglibSharp.Tests/Collections/ByteVectorTest.cs
index 2892e3232..e822c27ba 100644
--- a/src/TaglibSharp.Tests/Collections/ByteVectorTest.cs
+++ b/src/TaglibSharp.Tests/Collections/ByteVectorTest.cs
@@ -152,7 +152,7 @@ public void CommentsFrameError ()
static string MD5Hash (byte[] bytes)
{
- var md5 = new MD5CryptoServiceProvider ();
+ var md5 = MD5.Create ();
byte[] hash_bytes = md5.ComputeHash (bytes);
string hash_string = string.Empty;
diff --git a/src/TaglibSharp/Matroska/File.cs b/src/TaglibSharp/Matroska/File.cs
index 3a7896b8c..edad75146 100644
--- a/src/TaglibSharp/Matroska/File.cs
+++ b/src/TaglibSharp/Matroska/File.cs
@@ -338,10 +338,11 @@ void ReadWrite (ReadStyle propertiesStyle)
EBMLreader element;
try {
element = new EBMLreader (this, offset);
- } catch (Exception ex) {
+ } catch (Exception) {
// Sometimes, the file has zero padding at the end
- if (hasSegment) break; // Avoid crash
- throw ex;
+ if (hasSegment)
+ break; // Avoid crash
+ throw;
}
EBMLID ebml_id = (EBMLID)element.ID;