Skip to content

Commit 49033c7

Browse files
authored
WinForms trim value default tests (#42034)
1 parent 25d4ca2 commit 49033c7

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

src/Assets/TestProjects/KitchenSink/TestApp/TestApp.csproj

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,28 @@
1111
<PropertyGroup>
1212
<VerifyDependencyInjectionOpenGenericServiceTrimmability>true</VerifyDependencyInjectionOpenGenericServiceTrimmability>
1313
<_AggressiveAttributeTrimming>true</_AggressiveAttributeTrimming>
14+
<_DefaultValueAttributeSupport>true</_DefaultValueAttributeSupport>
15+
<_DesignerHostSupport>true</_DesignerHostSupport>
1416
<EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization>false</EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization>
1517
<_ComObjectDescriptorSupport>false</_ComObjectDescriptorSupport>
1618
<DebuggerSupport>true</DebuggerSupport>
17-
<EventSourceSupport>false</EventSourceSupport>
1819
<MetricsSupport>false</MetricsSupport>
20+
<StackTraceSupport>false</StackTraceSupport>
21+
<EventSourceSupport>false</EventSourceSupport>
22+
<_WinFormsUITypeEditorSupport>true</_WinFormsUITypeEditorSupport>
1923
<InvariantGlobalization>true</InvariantGlobalization>
2024
<PredefinedCulturesOnly>true</PredefinedCulturesOnly>
2125
<ConcurrentGarbageCollection>false</ConcurrentGarbageCollection>
2226
<ServerGarbageCollection>true</ServerGarbageCollection>
2327
<RetainVMGarbageCollection>false</RetainVMGarbageCollection>
2428
<HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
2529
<UseNativeHttpHandler>true</UseNativeHttpHandler>
30+
<_UseManagedNtlm>true</_UseManagedNtlm>
2631
<MetadataUpdaterSupport>false</MetadataUpdaterSupport>
2732
<NullabilityInfoContextSupport>false</NullabilityInfoContextSupport>
2833
<CustomResourceTypesSupport>false</CustomResourceTypesSupport>
2934
<UseSystemResourceKeys>true</UseSystemResourceKeys>
3035
<DynamicCodeSupport>true</DynamicCodeSupport>
31-
<XmlResolverIsNetworkingEnabledByDefault>false</XmlResolverIsNetworkingEnabledByDefault>
32-
<JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
3336
<BuiltInComInteropSupport>false</BuiltInComInteropSupport>
3437
<_EnableConsumingManagedCodeFromNativeHosting>false</_EnableConsumingManagedCodeFromNativeHosting>
3538
<EnableCppCLIHostActivation>false</EnableCppCLIHostActivation>
@@ -39,13 +42,19 @@
3942
<TieredCompilationQuickJitForLoops>true</TieredCompilationQuickJitForLoops>
4043
<TieredPGO>true</TieredPGO>
4144
<StartupHookSupport>false</StartupHookSupport>
42-
<StackTraceSupport>false</StackTraceSupport>
4345
<EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
46+
<JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
4447
<AutoreleasePoolSupport>false</AutoreleasePoolSupport>
4548
<ThreadPoolMinThreads>2</ThreadPoolMinThreads>
4649
<ThreadPoolMaxThreads>9</ThreadPoolMaxThreads>
4750
<UseWindowsThreadPool>true</UseWindowsThreadPool>
48-
<_UseManagedNtlm>true</_UseManagedNtlm>
51+
<_ActiveXImplSupport>true</_ActiveXImplSupport>
52+
<_WinFormsBindingSupport>true</_WinFormsBindingSupport>
53+
<_WinFormsDesignTimeFeaturesSupport>true</_WinFormsDesignTimeFeaturesSupport>
54+
<_UseComponentModelRegisteredTypes>false</_UseComponentModelRegisteredTypes>
55+
<_WinFormsImageIndexConverterSupport>true</_WinFormsImageIndexConverterSupport>
56+
<_MdiWindowDialogSupport>true</_MdiWindowDialogSupport>
57+
<XmlResolverIsNetworkingEnabledByDefault>false</XmlResolverIsNetworkingEnabledByDefault>
4958
</PropertyGroup>
5059

5160
<ItemGroup>

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,15 @@ public void It_publishes_the_project_correctly(string targetFramework, string[]
5858
""configProperties"": {
5959
""Microsoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmability"": true,
6060
""System.AggressiveAttributeTrimming"": true,
61+
""System.ComponentModel.DefaultValueAttribute.IsSupported"": true,
62+
""System.ComponentModel.Design.IDesignerHost.IsSupported"": true,
6163
""System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization"": false,
6264
""System.ComponentModel.TypeDescriptor.IsComObjectDescriptorSupported"": false,
6365
""System.Diagnostics.Debugger.IsSupported"": true,
6466
""System.Diagnostics.Metrics.Meter.IsSupported"": false,
6567
""System.Diagnostics.StackTrace.IsSupported"": false,
6668
""System.Diagnostics.Tracing.EventSource.IsSupported"": false,
69+
""System.Drawing.Design.UITypeEditor.IsSupported"": true,
6770
""System.Globalization.Invariant"": true,
6871
""System.Globalization.PredefinedCulturesOnly"": true,
6972
""System.GC.Concurrent"": false,
@@ -92,6 +95,13 @@ public void It_publishes_the_project_correctly(string targetFramework, string[]
9295
""System.Threading.ThreadPool.MinThreads"": 2,
9396
""System.Threading.ThreadPool.MaxThreads"": 9,
9497
""System.Threading.ThreadPool.UseWindowsThreadPool"": true,
98+
""System.Windows.Forms.ActiveXImpl.IsSupported"": true,
99+
""System.Windows.Forms.Binding.IsSupported"": true,
100+
""System.Windows.Forms.Control.AreDesignTimeFeaturesSupported"": true,
101+
""System.Windows.Forms.Control.UseComponentModelRegisteredTypes"": false,
102+
""System.Windows.Forms.ImageIndexConverter.IsSupported"": true,
103+
""System.Windows.Forms.MdiWindowDialog.IsSupported"": true,
104+
""System.Windows.Forms.Primitives.TypeConverterHelper.UseComponentModelRegisteredTypes"": false,
95105
""System.Xml.XmlResolver.IsNetworkingEnabledByDefault"": false,
96106
""extraProperty"": true
97107
},

0 commit comments

Comments
 (0)