Skip to content

Commit fd68e55

Browse files
authored
Merge pull request #79 from JSkimming/target-dotnetstandard2-only
Remove the netstandard1.4 build target
2 parents c7c5367 + ffd11a1 commit fd68e55

File tree

4 files changed

+2
-53
lines changed

4 files changed

+2
-53
lines changed

.circleci/config.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,6 @@ orbs:
3232
- store_test_results:
3333
path: ./test/TestResults/output/
3434

35-
# The --no-restore parameter was added in .NET Core 2, so add a dedicated job for building .NET Core 1.1
36-
run-build-1-1:
37-
parameters:
38-
build-config:
39-
description: The build configuration, either Debug or Release.
40-
type: string
41-
executor:
42-
name: dotnet-build-executor
43-
tag: "1.1"
44-
steps:
45-
- checkout
46-
- run:
47-
name: Restore
48-
command: dotnet restore
49-
- run:
50-
name: Build
51-
command: dotnet build -f netcoreapp1.1 -c << parameters.build-config >> ./test/Castle.Core.AsyncInterceptor.Tests/Castle.Core.AsyncInterceptor.Tests.csproj
52-
- run:
53-
name: Test
54-
command: dotnet test --no-build -f netcoreapp1.1 -c << parameters.build-config >> ./test/Castle.Core.AsyncInterceptor.Tests/Castle.Core.AsyncInterceptor.Tests.csproj
55-
5635
executors:
5736

5837
dotnet-build-executor:
@@ -69,12 +48,6 @@ workflows:
6948
jobs:
7049
- shellcheck/check:
7150
name: shellcheck
72-
- build/run-build-1-1:
73-
name: 1.1 Debug Build
74-
build-config: Debug
75-
- build/run-build-1-1:
76-
name: 1.1 Release Build
77-
build-config: Release
7851
- build/run-build:
7952
name: 2.1 Debug Build
8053
image-tag: "2.1"

Dockerfile

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,6 @@ RUN find . -type f -name '*.sh' -exec dos2unix {} \;
1010
# Run shell check on all the shell files.
1111
RUN find . -type f -name '*.sh' | wc -l && find . -type f -name '*.sh' | xargs shellcheck --external-sources
1212

13-
########################################################################################################################
14-
# .NET Core 1.1
15-
FROM mcr.microsoft.com/dotnet/core/sdk:1.1
16-
17-
ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
18-
19-
WORKDIR /work
20-
21-
# Copy just the solution and proj files to make best use of docker image caching.
22-
COPY ./castle.core.asyncinterceptor.sln .
23-
COPY ./src/Castle.Core.AsyncInterceptor/Castle.Core.AsyncInterceptor.csproj ./src/Castle.Core.AsyncInterceptor/Castle.Core.AsyncInterceptor.csproj
24-
COPY ./test/Castle.Core.AsyncInterceptor.Tests/Castle.Core.AsyncInterceptor.Tests.csproj ./test/Castle.Core.AsyncInterceptor.Tests/Castle.Core.AsyncInterceptor.Tests.csproj
25-
26-
# Run restore on just the project files, this should cache the image after restore.
27-
RUN dotnet restore
28-
29-
COPY . .
30-
31-
# Build to ensure the tests are their own distinct step
32-
RUN dotnet build -f netcoreapp1.1 -c Debug ./test/Castle.Core.AsyncInterceptor.Tests/Castle.Core.AsyncInterceptor.Tests.csproj
33-
34-
# Run unit tests
35-
RUN dotnet test --no-build -f netcoreapp1.1 -c Debug ./test/Castle.Core.AsyncInterceptor.Tests/Castle.Core.AsyncInterceptor.Tests.csproj
36-
3713
########################################################################################################################
3814
# .NET Core 2.1
3915
FROM mcr.microsoft.com/dotnet/core/sdk:2.1-alpine

src/Castle.Core.AsyncInterceptor/Castle.Core.AsyncInterceptor.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net45;netstandard1.4;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
55
<RootNamespace>Castle.DynamicProxy</RootNamespace>
66
<LangVersion>latest</LangVersion>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>

test/Castle.Core.AsyncInterceptor.Tests/Castle.Core.AsyncInterceptor.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net472;netcoreapp1.1;netcoreapp2.1</TargetFrameworks>
4+
<TargetFrameworks>net472;netcoreapp2.1</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
66
<RootNamespace>Castle.DynamicProxy</RootNamespace>
77
<IsPackable>false</IsPackable>

0 commit comments

Comments
 (0)