Skip to content

Commit

Permalink
BAH-4148 | WIP. Upgrade .NET version to 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 committed Dec 12, 2024
1 parent 8c96a75 commit 62c2a47
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "6.0.401"
"version": "8.0"
}
}
12 changes: 2 additions & 10 deletions package/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0.401 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

# Copy csproj and restore as distinct layers
Expand All @@ -17,15 +17,7 @@ WORKDIR /app/src/In.ProjectEKA.HipService
RUN dotnet publish -c Release -o /app

# Build runtime image
FROM alpine:latest

RUN apk update

# Install .NET Dependencies
RUN apk add bash icu-libs krb5-libs libgcc libintl libssl3 libstdc++ zlib

# Install .NET Runtime
RUN apk add aspnetcore6-runtime
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine

RUN mkdir app

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

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

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>In.ProjectEKA.HipLibrary</RootNamespace>
<Version>0.1.3</Version>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>In.ProjectEKA.HipService</RootNamespace>
<LangVersion>latest</LangVersion>
<NoWarn>$(NoWarn);CS1591</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

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

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<RootNamespace>In.ProjectEKA.HipServiceTest</RootNamespace>
<LangVersion>8</LangVersion>
Expand Down

0 comments on commit 62c2a47

Please sign in to comment.