Skip to content

Commit 8eb9957

Browse files
committed
Bump to net462, netstandard2.0, netcoreapp3.1
net462 seems reasonable, it also brings in support for paths longer than 260 characters. (Among other things) https://en.wikipedia.org/wiki/.NET_Framework_version_history#.NET_Framework_4.6.2 netcoreapp3.1 is the current LTS release https://dotnet.microsoft.com/platform/support/policy/dotnet-core Version: .NET Core 3.1 Original Release Date: December 3, 2019 Latest Patch Version: 3.1.3 Patch Release Date: March 24, 2020 Support Level: LTS End of Support: December 3, 2022
1 parent 2d3412c commit 8eb9957

File tree

9 files changed

+27
-26
lines changed

9 files changed

+27
-26
lines changed

.github/workflows/mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: MacNetCore
1+
name: macOS
22

33
on:
44
push:

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: UbuntuNetCore
1+
name: Ubuntu
22

33
on:
44
push:

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: WindowsNetCore
1+
name: Windows
22

33
on:
44
push:

Directory.Build.props

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
<Project>
2+
23
<PropertyGroup>
34
<ReleaseVersion>2.3.0.0</ReleaseVersion>
45
<RepositoryUrl>https://github.com/mono/taglib-sharp</RepositoryUrl>
56
<RepositoryType>git</RepositoryType>
6-
<TaglibSharpTargetFramework>netstandard2.0</TaglibSharpTargetFramework>
7+
8+
<!-- Make sure to update Directory.Build.targets too! -->
9+
<ExeTargetFrameworks>net462;netcoreapp3.1</ExeTargetFrameworks>
10+
<LibTargetFrameworks>net462;netstandard2.0</LibTargetFrameworks>
711
<LangVersion>latest</LangVersion>
812
</PropertyGroup>
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+
927
</Project>

examples/ReadFromUri/ReadFromUri.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PropertyGroup>
55
<OutputType>Exe</OutputType>
66
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
7-
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
7+
<TargetFrameworks>$(ExeTargetFrameworks)</TargetFrameworks>
88
</PropertyGroup>
99

1010
<ItemGroup>
@@ -22,8 +22,4 @@
2222
<Compile Include="ReadFromUri.cs" />
2323
</ItemGroup>
2424

25-
<ItemGroup>
26-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0" />
27-
</ItemGroup>
28-
2925
</Project>

examples/SetPictures/SetPictures.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PropertyGroup>
55
<OutputType>Exe</OutputType>
66
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
7-
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
7+
<TargetFrameworks>$(ExeTargetFrameworks)</TargetFrameworks>
88
</PropertyGroup>
99

1010
<ItemGroup>
@@ -22,8 +22,4 @@
2222
<ProjectReference Include="..\..\src\TaglibSharp\TaglibSharp.csproj" />
2323
</ItemGroup>
2424

25-
<ItemGroup>
26-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0" />
27-
</ItemGroup>
28-
2925
</Project>

src/Debug/Debug.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>$(ExeTargetFrameworks)</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
</PropertyGroup>
77

@@ -13,8 +13,4 @@
1313
<ProjectReference Include="..\TaglibSharp\TaglibSharp.csproj" />
1414
</ItemGroup>
1515

16-
<ItemGroup>
17-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0" />
18-
</ItemGroup>
19-
2016
</Project>

src/TaglibSharp.Tests/TaglibSharp.Tests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>$(ExeTargetFrameworks)</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

@@ -22,7 +22,6 @@
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
</PackageReference>
2424
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.0-beta0007" />
25-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0" />
2625
</ItemGroup>
2726

2827
</Project>

src/TaglibSharp/TaglibSharp.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>$(TaglibSharpTargetFramework)</TargetFrameworks>
4+
<TargetFrameworks>$(LibTargetFrameworks)</TargetFrameworks>
55
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\TaglibSharp.xml</DocumentationFile>
66
<AssemblyName>TagLibSharp</AssemblyName>
77
<RootNamespace>TagLib</RootNamespace>
@@ -32,8 +32,4 @@ January 21, 2019
3232
* Lots and lots of updates including net45 and .netstandard 2.0</PackageReleaseNotes>
3333
</PropertyGroup>
3434

35-
<ItemGroup>
36-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0" />
37-
</ItemGroup>
38-
3935
</Project>

0 commit comments

Comments
 (0)