Skip to content

Commit 9246b78

Browse files
authored
Merge pull request #215 from mono/add-netcore3-support
Update to use net462, netstandard2.0, netcoreapp3.1. Add CI for Windows, Mac, and Linux
2 parents 4340975 + 8eb9957 commit 9246b78

File tree

16 files changed

+133
-122
lines changed

16 files changed

+133
-122
lines changed

.github/workflows/mac.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: macOS
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
12+
jobs:
13+
build:
14+
runs-on: macOS-latest
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Setup .NET Core
19+
uses: actions/setup-dotnet@v1
20+
with:
21+
dotnet-version: 3.1.201
22+
- name: Build with dotnet
23+
run: dotnet build --configuration Release
24+
- name: Run unit tests
25+
run: dotnet test --verbosity normal

.github/workflows/ubuntu.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Ubuntu
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Setup .NET Core
19+
uses: actions/setup-dotnet@v1
20+
with:
21+
dotnet-version: 3.1.201
22+
- name: Build with dotnet
23+
run: dotnet build --configuration Release
24+
- name: Run unit tests
25+
run: dotnet test --verbosity normal

.github/workflows/windows.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Setup .NET Core
19+
uses: actions/setup-dotnet@v1
20+
with:
21+
dotnet-version: 3.1.201
22+
- name: Build with dotnet
23+
run: dotnet build --configuration Release
24+
- name: Run unit tests
25+
run: dotnet test --verbosity normal

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

Directory.Build.props

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
<Project>
2+
23
<PropertyGroup>
3-
<ReleaseVersion>2.2.0.0</ReleaseVersion>
4+
<ReleaseVersion>2.3.0.0</ReleaseVersion>
45
<RepositoryUrl>https://github.com/mono/taglib-sharp</RepositoryUrl>
56
<RepositoryType>git</RepositoryType>
6-
<TaglibSharpTargetFramework>net45;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>

TaglibSharp.sln

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SetPictures", "examples\Set
1717
EndProject
1818
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DBAF85DD-F405-4903-AF22-91FE886EF7DA}"
1919
ProjectSection(SolutionItems) = preProject
20-
.travis.yml = .travis.yml
21-
appveyor.yml = appveyor.yml
22-
azure-pipelines.yml = azure-pipelines.yml
2320
Directory.Build.props = Directory.Build.props
2421
Directory.Build.targets = Directory.Build.targets
2522
EndProjectSection

appveyor.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/ReadFromUri/ReadFromUri.csproj

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

1010
<ItemGroup>

examples/SetPictures/SetPictures.csproj

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

1010
<ItemGroup>

src/Debug/Debug.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>$(TaglibSharpTargetFramework)</TargetFrameworks>
4+
<TargetFrameworks>$(ExeTargetFrameworks)</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
</PropertyGroup>
77

88
<ItemGroup>
99
<None Remove="Makefile.am" />
1010
</ItemGroup>
1111

12-
<ItemGroup>
13-
<Folder Include="Properties\" />
14-
</ItemGroup>
15-
1612
<ItemGroup>
1713
<ProjectReference Include="..\TaglibSharp\TaglibSharp.csproj" />
1814
</ItemGroup>

0 commit comments

Comments
 (0)