Skip to content

Commit

Permalink
Inital bump to net6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
decriptor committed Jul 30, 2022
1 parent a14709d commit c853d26
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 2 additions & 15 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,9 @@
<RepositoryType>git</RepositoryType>

<!-- Make sure to update Directory.Build.targets too! -->
<ExeTargetFrameworks>net462;netcoreapp3.1</ExeTargetFrameworks>
<LibTargetFrameworks>net462;netstandard2.0</LibTargetFrameworks>
<ExeTargetFrameworks>net6.0;net472</ExeTargetFrameworks>
<LibTargetFrameworks>net6.0;netstandard2.0</LibTargetFrameworks>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net462'">
<DebugType>full</DebugType>
</PropertyGroup>

<!-- Allow building net framework using mono -->
<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) and '$(OS)' == 'Unix'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>


</Project>
2 changes: 1 addition & 1 deletion src/TaglibSharp.Tests/Collections/ByteVectorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
7 changes: 4 additions & 3 deletions src/TaglibSharp/Matroska/File.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c853d26

Please sign in to comment.