diff --git a/.vscode/launch.json b/.vscode/launch.json
index 378eecf6..9e6f2420 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
- "program": "${workspaceFolder}/src/Web/bin/Debug/net8.0/Web.dll",
+ "program": "${workspaceFolder}/src/Web/bin/Debug/net9.0/Web.dll",
"args": [],
"cwd": "${workspaceFolder}/src/Web",
"stopAtEntry": false,
diff --git a/README.md b/README.md
index b5fa3de4..075aba86 100644
--- a/README.md
+++ b/README.md
@@ -28,13 +28,13 @@ A list of Frequently Asked Questions about this repository can be found [here](h
## Overview Video
-[Steve "ardalis" Smith](https://twitter.com/ardalis) recorded [a live stream providing an overview of the eShopOnWeb reference app](https://www.youtube.com/watch?v=vRZ8ucGac8M&ab_channel=Ardalis) in October 2020.
+[Steve "ardalis" Smith](https://twitter.com/ardalis) recorded [a live stream providing an overview of the eShopOnWeb reference app](https://www.youtube.com/watch?v=vRZ8ucGac8M&ab_channel=Ardalis) in October 2020.
## 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 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://dotnet.microsoft.com/learn/web/aspnet-architecture)
@@ -44,7 +44,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.
> ### VERSIONS
-> #### The `main` branch is currently running ASP.NET Core 8.0.
+> #### The `main` branch is currently running ASP.NET Core 9.0.
> #### Older versions are tagged.
## Topics (eBook TOC)
@@ -93,12 +93,12 @@ azd auth login
Then, execute the `azd init` command to initialize the environment.
```
-azd init -t dotnet-architecture/eShopOnWeb
+azd init -t dotnet-architecture/eShopOnWeb
```
Run `azd up` to provision all the resources to Azure and deploy the code to those resources.
```
-azd up
+azd up
```
According to the prompt, enter an `env name`, and select `subscription` and `location`, these are the necessary parameters when you create resources. Wait a moment for the resource deployment to complete, click the web endpoint and you will see the home page.
@@ -110,11 +110,11 @@ According to the prompt, enter an `env name`, and select `subscription` and `loc
You can also run the sample directly locally (See below).
## Running the sample locally
-Most of the site's functionality works with just the web application running. However, the site's Admin page relies on Blazor WebAssembly running in the browser, and it must communicate with the server using the site's PublicApi web application. You'll need to also run this project. You can configure Visual Studio to start multiple projects, or just go to the PublicApi folder in a terminal window and run `dotnet run` from there. After that from the Web folder you should run `dotnet run --launch-profile Web`. Now you should be able to browse to `https://localhost:5001/`. The admin part in Blazor is accessible to `https://localhost:5001/admin`
+Most of the site's functionality works with just the web application running. However, the site's Admin page relies on Blazor WebAssembly running in the browser, and it must communicate with the server using the site's PublicApi web application. You'll need to also run this project. You can configure Visual Studio to start multiple projects, or just go to the PublicApi folder in a terminal window and run `dotnet run` from there. After that from the Web folder you should run `dotnet run --launch-profile Web`. Now you should be able to browse to `https://localhost:5001/`. The admin part in Blazor is accessible to `https://localhost:5001/admin`
Note that if you use this approach, you'll need to stop the application manually in order to build the solution (otherwise you'll get file locking errors).
-After cloning or downloading the sample you must setup your database.
+After cloning or downloading the sample you must setup your database.
To use the sample with a persistent database, you will need to run its Entity Framework Core migrations before you will be able to run the app.
You can also run the samples in Docker (see below).
diff --git a/global.json b/global.json
index 7d33bfd5..66690f83 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
- "version": "8.0.x",
+ "version": "9.0.0",
"rollForward": "latestFeature"
}
}
diff --git a/infra/main.bicep b/infra/main.bicep
index ffad0112..dda4df5d 100644
--- a/infra/main.bicep
+++ b/infra/main.bicep
@@ -54,7 +54,7 @@ module web './core/host/appservice.bicep' = {
appServicePlanId: appServicePlan.outputs.id
keyVaultName: keyVault.outputs.name
runtimeName: 'dotnetcore'
- runtimeVersion: '8.0'
+ runtimeVersion: '9.0'
tags: union(tags, { 'azd-service-name': 'web' })
appSettings: {
AZURE_SQL_CATALOG_CONNECTION_STRING_KEY: 'AZURE-SQL-CATALOG-CONNECTION-STRING'
diff --git a/src/Web/.config/dotnet-tools.json b/src/Web/.config/dotnet-tools.json
index e3cadb92..305bdb11 100644
--- a/src/Web/.config/dotnet-tools.json
+++ b/src/Web/.config/dotnet-tools.json
@@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"dotnet-ef": {
- "version": "8.0.0",
+ "version": "9.0.0",
"commands": [
"dotnet-ef"
]
diff --git a/src/eShopWeb.AspireServiceDefaults/eShopWeb.AspireServiceDefaults.csproj b/src/eShopWeb.AspireServiceDefaults/eShopWeb.AspireServiceDefaults.csproj
index 4a91dfba..373b5b0b 100644
--- a/src/eShopWeb.AspireServiceDefaults/eShopWeb.AspireServiceDefaults.csproj
+++ b/src/eShopWeb.AspireServiceDefaults/eShopWeb.AspireServiceDefaults.csproj
@@ -1,7 +1,7 @@
- net8.0
+ net9.0
enable
enable
true