Add configuration option to specify which dll's to enumerate when using .NET enumerations as datasource
See original GitHub issueWhen using .NET enums as data source in a DataList, Contentment enumerates all DLLs in the /bin folder when finding all defined .NET enums.
This can lead to the editor / admin seeing a huge list of .NET enums. In our project it seems to also lead to an error because of DLLs not being the correct version. Although it is not clear to me why we have this error.
I would like to be able to add the names of the DLLs to be enumerated somewhere in a special config section. This way we could tell Contentment to only look in certain DLLs.
It would also be useful to be able to specify wildcards.
Something like this:
<contentment>
<scanAssembly>
<add assembly="*" />
<remove assembly="MyAssembly" />
<remove assembly="MyAssembly2" />
</scanAssembly>
</contentment>
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
c# - App.config for dll
Console.WriteLine(ConfigurationManager.AppSettings["ConnectString"]);. I think what I want is to just specify a config filename, but I ...
Read more >Oracle Data Provider for .NET, Managed Driver Configuration
LDAP_ADMIN : Specifies the ldap.ora location. The LDAP_ADMIN setting works in conjunction with the TNS_ADMIN setting to set ldap.ora search order. ldap ...
Read more >Oracle Data Provider for .NET Assemblies
The OracleBulkCopyOptions enumeration specifies the values that can be combined with an instance of the OracleBulkCopy class and used as options to determine ......
Read more >Dynamic link library (DLL) - Windows Client
To use private DLLs, locate your DLLs in the program root folder. Then, for new programs, add version-specific information to the DLL. For...
Read more >Introduction to Microsoft.Data.SqlClient namespace
Learn about the Microsoft.Data.SqlClient namespace and how it's the preferred way to connect to SQL for .NET applications.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In case it helps with making a custom data-source, feel free to take what you need from the Enum data-source code. https://github.com/leekelleher/umbraco-contentment/blob/1.2.1/src/Umbraco.Community.Contentment/DataEditors/DataList/DataSources/EnumDataListSource.cs#L66
Thanks for the console error, I’ll take a look. 👍
This is from the console in dev tools in chromium. I am not sure why it wants a specific version of the dll and other dll’s. Oh, and sorry, it is in danish.