To reproduce:
using Rocks;
using System.Diagnostics;
public class ConventionDispatcher
{
[Conditional("DEBUG")]
public virtual void AssertNoScope() { }
}
public static class Test
{
public static void Go()
{
var expectations = Rock.Create<ConventionDispatcher>();
}
}
This creates the following diagnostics:
error CS0243: The Conditional attribute is not valid on 'CreateExpectationsOfConventionDispatcherExtensions.RockConventionDispatcher.AssertNoScope()' because it is an override method
This was found on Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ConventionDispatcher.
To reproduce:
This creates the following diagnostics:
This was found on
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ConventionDispatcher.