Skip to content

Commit 585e922

Browse files
committed
only check static assemblies for their exported types
closes #10
1 parent ebe033e commit 585e922

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Contentless/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ private static (List<ImporterInfo>, List<string>) GetContentData() {
253253
var processors = new List<string>();
254254
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) {
255255
try {
256-
foreach (var type in assembly.GetTypes()) {
256+
if (assembly.IsDynamic)
257+
continue;
258+
foreach (var type in assembly.GetExportedTypes()) {
257259
var importer = (ContentImporterAttribute) type.GetCustomAttribute(typeof(ContentImporterAttribute), true);
258260
if (importer != null)
259261
importers.Add(new ImporterInfo(importer, type));

0 commit comments

Comments
 (0)