File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
test/Microsoft.NET.Sdk.Web.Tests Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ Copyright (c) .NET Foundation. All rights reserved.
60
60
61
61
<!-- Default feature switch values for trimmed apps. -->
62
62
<SignalRCustomAwaitableSupport Condition =" '$(SignalRCustomAwaitableSupport)' == ''" >false</SignalRCustomAwaitableSupport >
63
+ <MvcEnhancedModelMetadataSupport Condition =" '$(MvcEnhancedModelMetadataSupport)' == ''" >false</MvcEnhancedModelMetadataSupport >
63
64
</PropertyGroup >
64
65
65
66
<PropertyGroup >
Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ Copyright (c) .NET Foundation. All rights reserved.
44
44
Condition =" '$(SignalRCustomAwaitableSupport)' != ''"
45
45
Value =" $(SignalRCustomAwaitableSupport)"
46
46
Trim =" true" />
47
+ <RuntimeHostConfigurationOption Include =" Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported"
48
+ Condition =" '$(MvcEnhancedModelMetadataSupport)' != ''"
49
+ Value =" $(MvcEnhancedModelMetadataSupport)"
50
+ Trim =" true" />
47
51
</ItemGroup >
48
52
49
53
</Project >
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ public void TrimmingOptions_Are_Defaulted_Correctly_On_Trimmed_Apps(string targe
41
41
42
42
configProperties [ "Microsoft.AspNetCore.SignalR.Hub.IsCustomAwaitableSupported" ] . GetValue < bool > ( )
43
43
. Should ( ) . BeFalse ( ) ;
44
+ configProperties [ "Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported" ] . GetValue < bool > ( )
45
+ . Should ( ) . BeFalse ( ) ;
44
46
configProperties [ "System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault" ] . GetValue < bool > ( )
45
47
. Should ( ) . BeFalse ( ) ;
46
48
}
@@ -97,6 +99,7 @@ public void TrimmingOptions_Are_Defaulted_Correctly_On_Aot_Apps(string targetFra
97
99
var responseFileContents = File . ReadLines ( responseFile ) ;
98
100
99
101
responseFileContents . Should ( ) . Contain ( "--feature:Microsoft.AspNetCore.SignalR.Hub.IsCustomAwaitableSupported=false" ) ;
102
+ responseFileContents . Should ( ) . Contain ( "--feature:Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported=false" ) ;
100
103
responseFileContents . Should ( ) . Contain ( "--feature:System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault=false" ) ;
101
104
responseFileContents . Should ( ) . Contain ( "--feature:System.Diagnostics.Tracing.EventSource.IsSupported=true" ) ;
102
105
responseFileContents . Should ( ) . Contain ( "--runtimeknob:System.GC.DynamicAdaptationMode=1" ) ;
You can’t perform that action at this time.
0 commit comments