I have one file Repository.cs that contains an interface and its implementation like so:
Repository.cs
public interface IRepository { IEnumerable
This may not be helpful for your code sample but in my case the same error was a result of a circular dependency.