File tree 6 files changed +10
-22
lines changed
TaglibSharp.Tests/Collections
6 files changed +10
-22
lines changed Original file line number Diff line number Diff line change 18
18
- name : Setup .NET Core
19
19
uses : actions/setup-dotnet@v1
20
20
with :
21
- dotnet-version : 3.1.421
21
+ dotnet-version : 6.0.302
22
22
- name : Build with dotnet
23
23
run : dotnet build --configuration Release
24
24
- name : Run unit tests
Original file line number Diff line number Diff line change 18
18
- name : Setup .NET Core
19
19
uses : actions/setup-dotnet@v1
20
20
with :
21
- dotnet-version : 3.1.421
21
+ dotnet-version : 6.0.302
22
22
- name : Build with dotnet
23
23
run : dotnet build --configuration Release
24
24
- name : Run unit tests
Original file line number Diff line number Diff line change 18
18
- name : Setup .NET Core
19
19
uses : actions/setup-dotnet@v1
20
20
with :
21
- dotnet-version : 3.1.421
21
+ dotnet-version : 6.0.302
22
22
23
23
- name : Clean
24
24
run : dotnet clean --configuration Release && dotnet nuget locals all --clear
Original file line number Diff line number Diff line change 6
6
<RepositoryType >git</RepositoryType >
7
7
8
8
<!-- Make sure to update Directory.Build.targets too! -->
9
- <ExeTargetFrameworks >net462;netcoreapp3.1 </ExeTargetFrameworks >
10
- <LibTargetFrameworks >net462 ;netstandard2.0</LibTargetFrameworks >
9
+ <ExeTargetFrameworks >net6.0;net472 </ExeTargetFrameworks >
10
+ <LibTargetFrameworks >net6.0 ;netstandard2.0</LibTargetFrameworks >
11
11
<LangVersion >latest</LangVersion >
12
12
</PropertyGroup >
13
13
14
- <PropertyGroup Condition =" '$(TargetFramework)' == 'net462'" >
15
- <DebugType >full</DebugType >
16
- </PropertyGroup >
17
-
18
- <!-- Allow building net framework using mono -->
19
- <ItemGroup Condition =" $(TargetFramework.StartsWith('net4')) and '$(OS)' == 'Unix'" >
20
- <PackageReference Include =" Microsoft.NETFramework.ReferenceAssemblies" Version =" 1.0.0" >
21
- <PrivateAssets >all</PrivateAssets >
22
- <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
23
- </PackageReference >
24
- </ItemGroup >
25
-
26
-
27
14
</Project >
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ public void CommentsFrameError ()
152
152
153
153
static string MD5Hash ( byte [ ] bytes )
154
154
{
155
- var md5 = new MD5CryptoServiceProvider ( ) ;
155
+ var md5 = MD5 . Create ( ) ;
156
156
byte [ ] hash_bytes = md5 . ComputeHash ( bytes ) ;
157
157
string hash_string = string . Empty ;
158
158
Original file line number Diff line number Diff line change @@ -338,10 +338,11 @@ void ReadWrite (ReadStyle propertiesStyle)
338
338
EBMLreader element ;
339
339
try {
340
340
element = new EBMLreader ( this , offset ) ;
341
- } catch ( Exception ex ) {
341
+ } catch ( Exception ) {
342
342
// Sometimes, the file has zero padding at the end
343
- if ( hasSegment ) break ; // Avoid crash
344
- throw ex ;
343
+ if ( hasSegment )
344
+ break ; // Avoid crash
345
+ throw ;
345
346
}
346
347
347
348
EBMLID ebml_id = ( EBMLID ) element . ID ;
You can’t perform that action at this time.
0 commit comments