updated docker file, launch settings, globaljson version to net 8
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
|
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
|
||||||
{
|
{
|
||||||
"name": "eShopOnWeb",
|
"name": "eShopOnWeb",
|
||||||
"image": "mcr.microsoft.com/devcontainers/dotnet:0-7.0",
|
"image": "mcr.microsoft.com/devcontainers/dotnet:0-8.0",
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
// Configure properties specific to VS Code.
|
// Configure properties specific to VS Code.
|
||||||
|
|||||||
2
.github/workflows/richnav.yml
vendored
2
.github/workflows/richnav.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
- name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: 7.0.x
|
dotnet-version: 8.0.x
|
||||||
|
|
||||||
- name: Build with dotnet
|
- name: Build with dotnet
|
||||||
run: dotnet build ./Everything.sln --configuration Release /bl
|
run: dotnet build ./Everything.sln --configuration Release /bl
|
||||||
|
|||||||
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -10,7 +10,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build",
|
||||||
// If you have changed target frameworks, make sure to update the program path.
|
// If you have changed target frameworks, make sure to update the program path.
|
||||||
"program": "${workspaceFolder}/src/Web/bin/Debug/net7.0/Web.dll",
|
"program": "${workspaceFolder}/src/Web/bin/Debug/net8.0/Web.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}/src/Web",
|
"cwd": "${workspaceFolder}/src/Web",
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ A list of Frequently Asked Questions about this repository can be found [here](h
|
|||||||
|
|
||||||
## eBook
|
## eBook
|
||||||
|
|
||||||
This reference application is meant to support the free .PDF download ebook: [Architecting Modern Web Applications with ASP.NET Core and Azure](https://aka.ms/webappebook), updated to **ASP.NET Core 7.0**. [Also available in ePub/mobi formats](https://dotnet.microsoft.com/learn/web/aspnet-architecture).
|
This reference application is meant to support the free .PDF download ebook: [Architecting Modern Web Applications with ASP.NET Core and Azure](https://aka.ms/webappebook), updated to **ASP.NET Core 8.0**. [Also available in ePub/mobi formats](https://dotnet.microsoft.com/learn/web/aspnet-architecture).
|
||||||
|
|
||||||
You can also read the book in online pages at the .NET docs here:
|
You can also read the book in online pages at the .NET docs here:
|
||||||
https://docs.microsoft.com/dotnet/architecture/modern-web-apps-azure/
|
https://docs.microsoft.com/dotnet/architecture/modern-web-apps-azure/
|
||||||
@@ -24,7 +24,7 @@ The **eShopOnWeb** sample is related to the [eShopOnContainers](https://github.c
|
|||||||
The goal for this sample is to demonstrate some of the principles and patterns described in the [eBook](https://aka.ms/webappebook). It is not meant to be an eCommerce reference application, and as such it does not implement many features that would be obvious and/or essential to a real eCommerce application.
|
The goal for this sample is to demonstrate some of the principles and patterns described in the [eBook](https://aka.ms/webappebook). It is not meant to be an eCommerce reference application, and as such it does not implement many features that would be obvious and/or essential to a real eCommerce application.
|
||||||
|
|
||||||
> ### VERSIONS
|
> ### VERSIONS
|
||||||
> #### The `main` branch is currently running ASP.NET Core 7.0.
|
> #### The `main` branch is currently running ASP.NET Core 8.0.
|
||||||
> #### Older versions are tagged.
|
> #### Older versions are tagged.
|
||||||
|
|
||||||
## Topics (eBook TOC)
|
## Topics (eBook TOC)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"sdk": {
|
"sdk": {
|
||||||
"version": "7.0.x",
|
"version": "8.0.x",
|
||||||
"rollForward": "latestFeature"
|
"rollForward": "latestFeature"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
#COPY ["src/PublicApi/PublicApi.csproj", "./PublicApi/"]
|
#COPY ["src/PublicApi/PublicApi.csproj", "./PublicApi/"]
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"isRoot": true,
|
"isRoot": true,
|
||||||
"tools": {
|
"tools": {
|
||||||
"dotnet-ef": {
|
"dotnet-ef": {
|
||||||
"version": "7.0.2",
|
"version": "8.0.0",
|
||||||
"commands": [
|
"commands": [
|
||||||
"dotnet-ef"
|
"dotnet-ef"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# RUN COMMAND
|
# RUN COMMAND
|
||||||
# docker run --name eshopweb --rm -it -p 5106:5106 web
|
# docker run --name eshopweb --rm -it -p 5106:5106 web
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY *.sln .
|
COPY *.sln .
|
||||||
@@ -17,7 +17,7 @@ RUN dotnet restore
|
|||||||
|
|
||||||
RUN dotnet publish -c Release -o out
|
RUN dotnet publish -c Release -o out
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS runtime
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/src/Web/out ./
|
COPY --from=build /app/src/Web/out ./
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user