Skip to content

Commit 968bfa9

Browse files
committed
upgrade to .net 10
1 parent 971cc09 commit 968bfa9

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Azure Developer CLI",
3-
"image": "mcr.microsoft.com/devcontainers/dotnet:8.0-bookworm",
3+
"image": "mcr.microsoft.com/devcontainers/dotnet:10.0-noble",
44
"features": {
55
// See https://containers.dev/features for list of features
66

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# quickstart-deploy-aspnet-core-app-service
22

3-
Quickstart-deploy-aspnet-core-app-service is a demo project showcasing what you can get your application up on Azure using [Azure Developer CLI](https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/overview)(azd).
3+
Quickstart-deploy-aspnet-core-app-service is a demo project showcasing what you can get your application up on Azure using [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/overview)(azd).
44

55
## Prerequisites
66

@@ -19,7 +19,7 @@ The following prerequisites are required to use this application. Please ensure
1919
curl -fsSL https://aka.ms/install-azd.sh | bash
2020
```
2121
22-
- [.Net SDK 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
22+
- [.Net SDK 10.0](https://dotnet.microsoft.com/download/dotnet/10.0)
2323
2424
- [Git (2.36.1+)](https://git-scm.com/)
2525

infra/core/host/appservice-appsettings.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ param name string
66
@secure()
77
param appSettings object
88

9-
resource appService 'Microsoft.Web/sites@2022-03-01' existing = {
9+
resource appService 'Microsoft.Web/sites@2025-03-01' existing = {
1010
name: name
1111
}
1212

13-
resource settings 'Microsoft.Web/sites/config@2022-03-01' = {
13+
resource settings 'Microsoft.Web/sites/config@2025-03-01' = {
1414
name: 'appsettings'
1515
parent: appService
1616
properties: appSettings

infra/core/host/appservice.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ param use32BitWorkerProcess bool = false
3737
param ftpsState string = 'FtpsOnly'
3838
param healthCheckPath string = ''
3939

40-
resource appService 'Microsoft.Web/sites@2022-03-01' = {
40+
resource appService 'Microsoft.Web/sites@2025-03-01' = {
4141
name: name
4242
location: location
4343
tags: tags
@@ -98,7 +98,7 @@ module configAppSettings 'appservice-appsettings.bicep' = {
9898
}
9999

100100
// sites/web/config 'logs'
101-
resource configLogs 'Microsoft.Web/sites/config@2022-03-01' = {
101+
resource configLogs 'Microsoft.Web/sites/config@2025-03-01' = {
102102
name: 'logs'
103103
parent: appService
104104
properties: {
@@ -110,7 +110,7 @@ resource configLogs 'Microsoft.Web/sites/config@2022-03-01' = {
110110
dependsOn: [configAppSettings]
111111
}
112112

113-
resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' existing = if (!(empty(keyVaultName))) {
113+
resource keyVault 'Microsoft.KeyVault/vaults@2025-05-01' existing = if (!(empty(keyVaultName))) {
114114
name: keyVaultName
115115
}
116116

infra/core/host/appserviceplan.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ param kind string = ''
77
param reserved bool = true
88
param sku object
99

10-
resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
10+
resource appServicePlan 'Microsoft.Web/serverfarms@2025-03-01' = {
1111
name: name
1212
location: location
1313
tags: tags

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var resourceToken = toLower(uniqueString(subscription().id, environmentName, loc
4242
// tags: union(tags, { 'azd-service-name': apiServiceName })
4343

4444
// Organize resources in a resource group
45-
resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = {
45+
resource rg 'Microsoft.Resources/resourceGroups@2025-04-01' = {
4646
name: !empty(resourceGroupName) ? resourceGroupName : '${abbrs.resourcesResourceGroups}${environmentName}'
4747
location: location
4848
tags: tags
@@ -59,7 +59,7 @@ module web './core/host/appservice.bicep' = {
5959
location: location
6060
appServicePlanId: appServicePlan.outputs.id
6161
runtimeName: 'dotnetcore'
62-
runtimeVersion: '8.0'
62+
runtimeVersion: '10.0'
6363
tags: union(tags, { 'azd-service-name': 'web' })
6464
}
6565
}

src/MyAzureWebApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<_EnableMacOSCodeSign>false</_EnableMacOSCodeSign>

0 commit comments

Comments
 (0)