Skip to content

Commit

Permalink
[asp.net] Finish updating ASP.NET project to .NET 8
Browse files Browse the repository at this point in the history
also deleted unused global.json
  • Loading branch information
LanceMcCarthy committed Nov 20, 2023
1 parent 40feb97 commit 72bd6bc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/AspNetCore/MyAspNetCoreApp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ VisualStudioVersion = 17.2.32630.192
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyAspNetCoreApp", "MyAspNetCoreApp\MyAspNetCoreApp.csproj", "{F44DA130-BCF4-493B-AC08-D60560DA2A87}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D3C3BDAC-8C1E-4B2A-9F68-6AC02F3396F9}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
4 changes: 2 additions & 2 deletions src/AspNetCore/MyAspNetCoreApp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
Expand All @@ -12,7 +12,7 @@ RUN apt-get update \



FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
# Change work directory to the subfolder with this project
WORKDIR /src/MyAspNetCoreApp
# Copy over the code files
Expand Down
2 changes: 1 addition & 1 deletion src/AspNetCore/MyAspNetCoreApp/Dockerfile_CentOS
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ RUN yum install libgdiplus -y

# Install aspnetcore runtime (if your base image does not have it already)
RUN rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
RUN yum install aspnetcore-runtime-6.0 -y
RUN yum install aspnetcore-runtime-8.0 -y
3 changes: 0 additions & 3 deletions src/AspNetCore/global.json

This file was deleted.

0 comments on commit 72bd6bc

Please sign in to comment.