Skip to content

Commit

Permalink
Merge pull request #31 from elonmallin/master
Browse files Browse the repository at this point in the history
fix: add net8 and net7 support
  • Loading branch information
stylianosnicoletti authored Feb 29, 2024
2 parents a0270b8 + c3a8cae commit 0ef4ecf
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
dotnet-version: 8.0.100
- name: Restore
run: dotnet restore
- name: Build
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
dotnet-version: 8.0.100
- name: Build
run: dotnet build -c Release
- name: Create Release NuGet package
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/docker-example/ConsoleApp/bin/Debug/net6.0/ConsoleApp.dll",
"program": "${workspaceFolder}/docker-example/ConsoleApp/bin/Debug/net8.0/ConsoleApp.dll",
"args": [],
"cwd": "${workspaceFolder}/docker-example/ConsoleApp",
"console": "internalConsole",
Expand Down
2 changes: 1 addition & 1 deletion docker-example/ConsoleApp/ConsoleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

</Project>
4 changes: 2 additions & 2 deletions docker-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0.100-bullseye-slim-amd64 as build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-bullseye-slim-amd64 as build-env
WORKDIR /app

# Copy csproj and restore as distinct layers
Expand All @@ -13,7 +13,7 @@ RUN dotnet publish -c Release -o /app/out
RUN dotnet tool install --tool-path /app/out dotnet-certificate-tool

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0.0-bullseye-slim-amd64
FROM mcr.microsoft.com/dotnet/aspnet:8.0.0-bullseye-slim-amd64
WORKDIR /app
COPY --from=build-env /app/out .
COPY ./docker-entrypoint.sh .
Expand Down
2 changes: 1 addition & 1 deletion docker-example/global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "6.0.100"
"version": "8.0.100"
}
}
2 changes: 1 addition & 1 deletion src/GSoft.CertificateTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<Description>CLI tool that installs a certificate to the specified store (defaults to My).</Description>
<RepositoryUrl>https://github.com/gsoft-inc/dotnet-certificate-tool</RepositoryUrl>
<TargetFrameworks>net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 0ef4ecf

Please sign in to comment.