File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
src/Mvc/test/WebSites/ControllersFromServicesWebSite Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"sdk" : {
3
- "version" : " 6.0.100-preview.3.21165 .3"
3
+ "version" : " 6.0.100-preview.3.21167 .3"
4
4
},
5
5
"tools" : {
6
- "dotnet" : " 6.0.100-preview.3.21165 .3" ,
6
+ "dotnet" : " 6.0.100-preview.3.21167 .3" ,
7
7
"runtimes" : {
8
8
"dotnet/x64" : [
9
9
" 2.1.25" ,
Original file line number Diff line number Diff line change @@ -25,6 +25,18 @@ public void ConfigureServices(IServiceCollection services)
25
25
. AddControllersWithViews ( )
26
26
. ConfigureApplicationPartManager ( manager => manager . ApplicationParts . Clear ( ) )
27
27
. 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
+ } )
28
40
. AddControllersAsServices ( )
29
41
. AddViewComponentsAsServices ( )
30
42
. AddTagHelpersAsServices ( ) ;
You can’t perform that action at this time.
0 commit comments