Open-XML-SDK icon indicating copy to clipboard operation
Open-XML-SDK copied to clipboard

Trimming: ReflectionBasedRootElementFactory

Open twsouthwick opened this issue 3 years ago • 0 comments

Description

We should generate a feature that can create root elements without resorting to reflection.

Warning:

W:\openxml\sdk\src\DocumentFormat.OpenXml\Features\ReflectionBasedRootElementFactory.cs(53,25): warning IL2026: Usi
ng member 'System.Reflection.Assembly.GetTypes()' which has 'RequiresUnreferencedCodeAttribute' can break functiona
lity when trimming application code. Types might be removed. [W:\openxml\sdk\src\DocumentFormat.OpenXml\DocumentFor
mat.OpenXml.csproj]

twsouthwick avatar Jun 28 '22 21:06 twsouthwick