Skip to content

Commit c19003c

Browse files
committed
Bump to new SDK
1 parent 63e71c1 commit c19003c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"sdk": {
3-
"version": "6.0.100-preview.3.21165.3"
3+
"version": "6.0.100-preview.3.21167.3"
44
},
55
"tools": {
6-
"dotnet": "6.0.100-preview.3.21165.3",
6+
"dotnet": "6.0.100-preview.3.21167.3",
77
"runtimes": {
88
"dotnet/x64": [
99
"2.1.25",

src/Mvc/test/WebSites/ControllersFromServicesWebSite/Startup.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ public void ConfigureServices(IServiceCollection services)
2525
.AddControllersWithViews()
2626
.ConfigureApplicationPartManager(manager => manager.ApplicationParts.Clear())
2727
.AddApplicationPart(typeof(TimeScheduleController).GetTypeInfo().Assembly)
28+
.ConfigureApplicationPartManager(manager =>
29+
{
30+
manager.ApplicationParts.Add(new TypesPart(
31+
typeof(AnotherController),
32+
typeof(ComponentFromServicesViewComponent),
33+
typeof(InServicesTagHelper)));
34+
35+
foreach (var part in CompiledRazorAssemblyApplicationPartFactory.GetDefaultApplicationParts(Assembly.GetExecutingAssembly()))
36+
{
37+
manager.ApplicationParts.Add(part);
38+
}
39+
})
2840
.AddControllersAsServices()
2941
.AddViewComponentsAsServices()
3042
.AddTagHelpersAsServices();

0 commit comments

Comments
 (0)