Skip to content

Package validation and interface inheritance problemย #25888

Open
@hudecekd

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions