diff --git a/CliFx.Analyzers.Tests/CliFx.Analyzers.Tests.csproj b/CliFx.Analyzers.Tests/CliFx.Analyzers.Tests.csproj index a973475..fd7f117 100644 --- a/CliFx.Analyzers.Tests/CliFx.Analyzers.Tests.csproj +++ b/CliFx.Analyzers.Tests/CliFx.Analyzers.Tests.csproj @@ -12,7 +12,7 @@ - + diff --git a/CliFx.Analyzers/CliFx.Analyzers.csproj b/CliFx.Analyzers/CliFx.Analyzers.csproj index 27c7df5..cd9d8ad 100644 --- a/CliFx.Analyzers/CliFx.Analyzers.csproj +++ b/CliFx.Analyzers/CliFx.Analyzers.csproj @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/CliFx.Benchmarks/CliFx.Benchmarks.csproj b/CliFx.Benchmarks/CliFx.Benchmarks.csproj index 6d32587..daa7932 100644 --- a/CliFx.Benchmarks/CliFx.Benchmarks.csproj +++ b/CliFx.Benchmarks/CliFx.Benchmarks.csproj @@ -6,7 +6,7 @@ - + diff --git a/CliFx/CliFx.csproj b/CliFx/CliFx.csproj index 5aec177..265bec4 100644 --- a/CliFx/CliFx.csproj +++ b/CliFx/CliFx.csproj @@ -25,7 +25,7 @@ - + diff --git a/CliFx/Schema/CommandSchema.cs b/CliFx/Schema/CommandSchema.cs index c2fe7c8..e482d97 100644 --- a/CliFx/Schema/CommandSchema.cs +++ b/CliFx/Schema/CommandSchema.cs @@ -93,7 +93,7 @@ internal partial class CommandSchema .Union(type .GetInterfaces() // Only interfaces implementing ICommand for explicitness - .Where(i => typeof(ICommand).IsAssignableFrom(i) && i != typeof(ICommand)) + .Where(i => i != typeof(ICommand) && i.IsAssignableTo(typeof(ICommand))) .SelectMany(i => i .GetProperties() .Where(p => !p.GetMethod.IsAbstract && !p.SetMethod.IsAbstract)