Skip to content

Commit 68ddee7

Browse files
committed
Updated sample to work with net6.0
1 parent 0d4503f commit 68ddee7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

2-WebApp-graph-user/2-3-Multi-Tenant/Startup.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,12 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
137137
app.UseEndpoints(endpoints =>
138138
{
139139
endpoints.MapControllerRoute(
140-
name: "default",
140+
name: "Index",
141141
pattern: "{controller=Home}/{action=Index}/{id?}");
142+
143+
endpoints.MapControllerRoute(
144+
name: "default",
145+
pattern: "{controller}/{action}/{id?}");
142146
endpoints.MapRazorPages();
143147
});
144148
}

2-WebApp-graph-user/2-3-Multi-Tenant/WebApp-OpenIDConnect-DotNet.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.8" />
23-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.8" />
22+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.3">
23+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
24+
<PrivateAssets>all</PrivateAssets>
25+
</PackageReference>
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.3" />
2427
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.22.2" />
2528
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="1.22.2" />
2629
</ItemGroup>

0 commit comments

Comments
 (0)