Skip to content

Clarifies Source Generator Ambiguities and Disabling#411

Merged
Keboo merged 1 commit intomasterfrom
docsUpdate
Dec 9, 2025
Merged

Clarifies Source Generator Ambiguities and Disabling#411
Keboo merged 1 commit intomasterfrom
docsUpdate

Conversation

@Keboo
Copy link
Collaborator

@Keboo Keboo commented Dec 9, 2025

Adds comprehensive documentation to clarify potential ambiguous method call errors that can occur when Moq.AutoMock source generators are enabled across multiple test projects with shared visibility.

Provides detailed instructions on:

  • Why ambiguous reference issues occur (due to generated internal partial classes).
  • Common scenarios leading to these errors.
  • How to resolve these issues by disabling specific source generators using MSBuild properties in the .csproj file.

This update aims to improve user experience by addressing a common pain point and providing clear guidance for configuration.

Relates to #410

Adds documentation explaining ambiguous reference issues caused by internal partial source-generated classes, details how to disable specific generators via MSBuild properties, and updates README navigation to source generator docs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant