You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -48,10 +48,6 @@ First, register the web API in your Azure AD tenant and add a scope by following
48
48
49
49
[Download the ASP.NET Core solution](https://github.com/Azure-Samples/active-directory-dotnet-native-aspnetcore-v2/archive/aspnetcore3-1.zip) from GitHub.
50
50
51
-
> [!Note]
52
-
> The code sample currently targets ASP.NET Core 3.1. The sample can be updated to use .NET Core 6.0 and is covered in the following steps: [Update the sample code to ASP.NET Core 6.0](#step-4-update-the-sample-code-to-aspnet-core-60)
53
-
This quickstart will be deprecated in the near future and will be updated to use .NET 6.0.
54
-
55
51
## Step 3: Configure the ASP.NET Core project
56
52
57
53
In this step, the sample code will be configured to work with the app registration that was created earlier.
@@ -74,26 +70,7 @@ In this step, the sample code will be configured to work with the app registrati
74
70
75
71
For this quickstart, don't change any other values in the *appsettings.json* file.
76
72
77
-
### Step 4: Update the sample code to ASP.NET Core 6.0
78
-
79
-
To update this code sample to target ASP.NET Core 6.0, follow these steps:
80
-
81
-
1. Open webapi.csproj
82
-
1. Remove the following line:
83
-
84
-
```xml
85
-
<TargetFramework>netcoreapp3.1</TargetFramework>
86
-
```
87
-
88
-
1. Add the following line in its place:
89
-
90
-
```xml
91
-
<TargetFramework>netcoreapp6.0</TargetFramework>
92
-
```
93
-
94
-
This step will ensure that the sample is targeting the .NET Core 6.0 framework.
95
-
96
-
### Step 5: Run the sample
73
+
### Step 4: Run the sample
97
74
98
75
1. Open a terminal and change directory to the project folder.
99
76
@@ -167,31 +144,28 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
Copy file name to clipboardExpand all lines: articles/active-directory/develop/includes/web-app/quickstart-aspnet-core.md
+2-25Lines changed: 2 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.subservice: develop
10
10
ms.topic: quickstart
11
11
ms.workload: identity
12
12
13
-
ms.date: 12/19/2022
13
+
ms.date: 04/16/2023
14
14
ms.author: cwerner
15
15
16
16
ms.reviewer: jmprieur
@@ -50,10 +50,6 @@ See [How the sample works](#how-the-sample-works) for an illustration.
50
50
51
51
[Download the ASP.NET Core solution](https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/archive/aspnetcore3-1-callsgraph.zip)
52
52
53
-
> [!Note]
54
-
> The code sample currently targets ASP.NET Core 3.1. The sample can be updated to use .NET Core 6.0 and is covered in the following steps: [Update the sample code to ASP.NET Core 6.0](#step-4-update-the-sample-code-to-aspnet-core-60)
55
-
This quickstart will be deprecated in the near future and will be updated to use .NET 6.0.
56
-
57
53
### Step 3: Configure your ASP.NET Core project
58
54
59
55
1. Extract the *.zip* file to a local folder that's close to the root of the disk to avoid errors caused by path length limitations on Windows. For example, extract to *C:\Azure-Samples*.
@@ -74,27 +70,8 @@ This quickstart will be deprecated in the near future and will be updated to use
74
70
- Replace `Enter_the_Client_Secret_Here` with the **Client secret** that was created and recorded in an earlier step.
75
71
76
72
For this quickstart, don't change any other values in the *appsettings.json* file.
77
-
78
-
### Step 4: Update the sample code to ASP.NET Core 6.0
79
-
80
-
To update this code sample to target ASP.NET Core 6.0, follow these steps:
81
-
82
-
1. Open WebApp-OpenIDConnect-DotNet.csproj
83
-
1. Remove the following line:
84
-
85
-
```xml
86
-
<TargetFramework>netcoreapp3.1</TargetFramework>
87
-
```
88
-
89
-
1. Add the following line in its place:
90
-
91
-
```xml
92
-
<TargetFramework>netcoreapp6.0</TargetFramework>
93
-
```
94
-
95
-
This step will ensure that the sample is targeting the .NET Core 6.0 framework.
96
73
97
-
### Step 5: Build and run the application
74
+
### Step 4: Build and run the application
98
75
99
76
Build and run the app in Visual Studio by selecting the **Debug** menu > **Start Debugging**, or by pressing the F5 key.
0 commit comments