Package validation and interface inheritance problemย #25888
Open
Description
opened on Jun 7, 2022
Problem
Greetings,
we use package validation which is great and currently we are facing issue (maybe it is feature).
We have extended our interface from IBackgroundTaskQueue
to IBackgroundTaskQueue : IDisposable
.
I would expect that when we try to make package it shows error since we introduced new required metho Dispose
which has
to be implemented in class which implements this interface.
But there is no error. It seems odd to me since if I add some method to interface directly it shows error such as
error CP0006: Cannot add interface member 'IBackgroundTaskQueue.Test()' to lib/netstandard2.1/XXX.dll because it does not exist on [Baseline] lib/netstandard2.1/XXX.dll
Thanks for advice
Dusan Hudecek
Current behavior
No error package builds and package validation reports NO error.
Expectation
I would expect that error similar to CP0006 is shown.
sdk
.NET 6
Activity