Skip to content

Commit 8a2ea9e

Browse files
authored
compile net48 on Linux (#182)
1 parent 0bbef45 commit 8a2ea9e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ jobs:
1212
with:
1313
fetch-depth: 0
1414

15+
- uses: actions/cache@v2
16+
with:
17+
path: ~/.nuget/packages
18+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
19+
restore-keys: |
20+
${{ runner.os }}-nuget-
21+
1522
- name: Setup dotnet
1623
uses: actions/setup-dotnet@v1
1724
with:

src/GitLabApiClient/GitLabApiClient.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks Condition="'$(OS)' != 'Unix'">netstandard2.0;net48;netcoreapp3.1</TargetFrameworks>
5-
<TargetFrameworks Condition="'$(OS)' == 'Unix'">netstandard2.0;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net48;netcoreapp3.1</TargetFrameworks>
65
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
76
<Copyright />
87
<Description>GitLabApiClient is a .NET rest client for GitLab API v4.</Description>
@@ -20,6 +19,7 @@
2019
</PropertyGroup>
2120

2221
<ItemGroup>
22+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0" />
2323
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
2424
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
2525
</ItemGroup>

0 commit comments

Comments
 (0)