diff --git a/Contentless/Contentless.nuspec b/Contentless/Contentless.nuspec index af4df98..0e34647 100644 --- a/Contentless/Contentless.nuspec +++ b/Contentless/Contentless.nuspec @@ -2,7 +2,7 @@ Contentless - 2.0.3 + 2.0.4 Ellpeck A tool for MonoGame that automatically handles adding assets to the Content Pipeline project monogame mono xna content pipeline mgcb builder tool library diff --git a/Contentless/Program.cs b/Contentless/Program.cs index df0f970..1e3dece 100644 --- a/Contentless/Program.cs +++ b/Contentless/Program.cs @@ -142,7 +142,7 @@ namespace Contentless { private static IEnumerable GetContentImporters() { foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) { - foreach (var type in assembly.GetTypes()) { + foreach (var type in assembly.GetExportedTypes()) { var importer = (ContentImporterAttribute) type.GetCustomAttribute(typeof(ContentImporterAttribute), true); if (importer != null) yield return new ImporterInfo(importer, type); @@ -152,7 +152,7 @@ namespace Contentless { private static IEnumerable GetContentProcessors() { foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) { - foreach (var type in assembly.GetTypes()) { + foreach (var type in assembly.GetExportedTypes()) { var processor = type.GetCustomAttribute(typeof(ContentProcessorAttribute), true); if (processor != null) yield return type.Name;