Closed lozn00 closed 1 year ago
The native AOT projects lives in http://github.com/dotnet/runtime now. Please open any issues http://github.com/dotnet/runtime.
System.Configuration.ConfigurationManager
package is not compatible with trimming and AOT (tracked by https://github.com/dotnet/runtime/issues/49062). You should see a warning like Assembly 'System.Configuration.ConfigurationManager' produced trim warnings.
during build. This warning says that there is a good chance that the app is not going to work.
Duplicate of https://github.com/dotnet/runtime/issues/49062 that tracks trimming compatibility for System.Configuration.ConfigurationManager
package.
@jkotas Can you give some advice? What library should I use instead of ConfigurationManager? Used to read and write files
Can you give some advice? What other utility classes support reading and writing configuration, and if I can't use ConfigurationManager, then what should I use?
Microsoft.Extensions.Configuration is going to be the trimming and AOT friendly in .NET 8 with the introduction of configuration source generators: https://devblogs.microsoft.com/dotnet/announcing-dotnet-8-preview-3/#introducing-the-configuration-binding-source-generator
thank you
code