question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add configuration option to specify which dll's to enumerate when using .NET enumerations as datasource

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
leekellehercommented, Mar 10, 2021

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. 👍

1reaction
davidstroemcommented, Mar 10, 2021

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. image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found