This repository has been archived by the owner on Jul 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support for AspNetCore 3 - Multi-target main lib as netstandard2.0 and netcoreapp3.0 - Use conditional ItemGroup references so netcoreapp3.0 can use FrameworkReference and netstandard can use nuget packages - Multi-target test lib as netcoreapp2.1 and netcoreapp3.0 - Test lib use newer version of SignalR
- Loading branch information
Showing
20 changed files
with
189 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
**/bin/ | ||
**/obj/ | ||
**/global.json | ||
**/Dockerfile* | ||
**/.dockerignore* | ||
**/*.user | ||
**/*.Custom.json | ||
**/*.CustomDotSettings | ||
.idea/ | ||
.vs/ | ||
.vscode/ | ||
.git/ | ||
**/node_modules | ||
artifacts/ | ||
**/_NCrunch_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo Off | ||
dotnet run --project build -- %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
dotnet run --project build -- "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
@echo Off | ||
dotnet run --project build -- %* | ||
@ECHO OFF | ||
|
||
docker build ^ | ||
-f build.Dockerfile ^ | ||
--tag proxykit-build . | ||
|
||
if errorlevel 1 ( | ||
echo Docker build failed: Exit code is %errorlevel% | ||
exit /b %errorlevel% | ||
) | ||
|
||
docker run --rm --name proxykit-build ^ | ||
-v %cd%/artifacts:/repo/artifacts ^ | ||
-v %cd%/.git:/repo/.git ^ | ||
-e MYGET_API_KEY=$MYGET_API_KEY ^ | ||
proxykit-build ^ | ||
dotnet run -p /repo/build/build.csproj -c Release -- %* | ||
|
||
if errorlevel 1 ( | ||
echo Docker build failed: Exit code is %errorlevel% | ||
exit /b %errorlevel% | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM mcr.microsoft.com/dotnet/core/sdk:3.0.100-alpine3.9 | ||
|
||
# Install DotNet Core 2.1 | ||
RUN wget -O dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.1.802/dotnet-sdk-2.1.802-linux-musl-x64.tar.gz \ | ||
&& dotnet_sha512='69fac356dd7ee7445e640326a6eedfe95d93d901437fdb6f30de80cb23274ea645cf172d656e72e5a11be5ebd8022a8d9ef7931e5de59d7521331fcbf51b7c15' \ | ||
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \ | ||
&& mkdir -p /usr/share/dotnet \ | ||
&& tar -C /usr/share/dotnet -xzf dotnet.tar.gz \ | ||
&& rm dotnet.tar.gz | ||
|
||
RUN apk add git=2.20.1-r0 | ||
|
||
WORKDIR /repo | ||
|
||
# Copy slns, csprojs and do a dotnet restore | ||
COPY ./build/*.sln ./build/ | ||
COPY ./build/*.csproj ./build/ | ||
WORKDIR /repo/build | ||
RUN dotnet restore | ||
|
||
WORKDIR /repo | ||
COPY ./*.sln ./ | ||
COPY ./src/*/*.csproj ./src/ | ||
RUN for file in $(ls src/*.csproj); do mkdir -p ./${file%.*}/ && mv $file ./${file%.*}/; done | ||
RUN dotnet restore | ||
|
||
# Copy source files | ||
COPY ./build ./build/ | ||
COPY ./src ./src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
dotnet run --project build -- "$@" | ||
|
||
docker build \ | ||
--build-arg MYGET_API_KEY=$MYGET_API_KEY \ | ||
-f build.dockerfile \ | ||
--tag proxykit-build . | ||
|
||
docker run --rm --name proxykit-build \ | ||
-v $PWD/artifacts:/repo/artifacts \ | ||
-v $PWD/.git:/repo/.git \ | ||
-e MYGET_API_KEY=$MYGET_API_KEY \ | ||
proxykit-build \ | ||
dotnet run -p /repo/build/build.csproj -c Release -- "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/ProxyKit.Tests/ProxyKit.Tests.netcoreapp2.1.v3.ncrunchproject
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<ProjectConfiguration> | ||
<Settings> | ||
<HiddenComponentWarnings> | ||
<Value>AspNetTestHostCompatibility</Value> | ||
</HiddenComponentWarnings> | ||
</Settings> | ||
</ProjectConfiguration> |
7 changes: 7 additions & 0 deletions
7
src/ProxyKit.Tests/ProxyKit.Tests.netcoreapp3.0.v3.ncrunchproject
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<ProjectConfiguration> | ||
<Settings> | ||
<HiddenComponentWarnings> | ||
<Value>AspNetTestHostCompatibility</Value> | ||
</HiddenComponentWarnings> | ||
</Settings> | ||
</ProjectConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.