Skip to content

Implementing IRecipient<> gives build error #400

@fatichar

Description

@fatichar

Describe the bug

On version 8.0.0, implementing IRecipient<> interface gives build errors. One of the errors is:

Error	CS0111	Type '__IMessengerExtensions' already defines a member called 'CreateAllMessagesRegistrator' with the same parameter types	App	P:\Projects\KafkaLens\App\CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.IMessengerRegisterAllGenerator\KafkaLens.App.Controls.Browser.g.cs	9	Active

Regression

7.1.2

Steps to reproduce

1. Install version 8.0.0 of the package
2. Create a class and implement IRecipient<object>
2. Build the project using VS2022

Expected behavior

Build should succeed

Screenshots

image

IDE and version

VS 2022, VS 2022 Preview

IDE version

17.3.0 Preview 4.0

Nuget packages

  • CommunityToolkit.Common
  • CommunityToolkit.Diagnostics
  • CommunityToolkit.HighPerformance
  • CommunityToolkit.Mvvm (aka MVVM Toolkit)

Nuget package version(s)

8.0.0

Additional context

No response

Help us help you

No, just wanted to report this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛An unexpected issue that highlights incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions