Search code examples
roslynjetbrains-idemasstransitrider

JetBrains Rider | MassTransit Anonymous Type | MCA0003 | "Add Missing Properties" command does not autocomplete the properties


Background

Operating Systems and IDEs Tested: JetBrains Rider 2020.2.4 on Linux Elementary 5.1 Hera | Fail JetBrains Rider 2020.2.4 on Windows 10 Home | Fail Visual Studio Professional 2019 on Windows 10 Home | Success

Dotnet Version: .Net Core 3.1

I'm following the tutorial Chris Patterson published on YouTube MassTransit Starting with Mediator. The link is timestamped to where my issue occurs.

NuGet Packages Installed:

  • MassTransit.AspNetCore on the API Project,
  • MassTransit.Analyzers 7.0.4 on the API and Components projects, and
  • MassTransit 7.0.4 on the Components project.

Issue

In the Request Client's GetResponse function, I created the anonymous type to represent the message contract. I.e.:

var response = await _submitOrderRequestClient.GetResponse<OrderSubmissionAccepted>(new {});

The analyzer recognizes the properties are missing and provides the option "Add Missing Properties." I clicked the button to add the properties; however, nothing happens.

Question

How can I troubleshoot this issue further or resolve the issue? This seems like a fantastic feature, and I'd really like to take advantage of it.

Note

The issue is limited to JetBrains Rider 2020.2.3 and 2020.2.4 regardless of the operating system. JetBrains has a ticket open as of 2020-10-07 RIDER-52072


Solution

  • I've had this issue as well, after updating today it works again.

    Update: Build #RD-203.6110.173, built on November 24, 2020