Replies: 1 comment 3 replies
|
Thank you for reporting this. My understanding was that Roslyn automatically resolves the analyzer from the latest supported version-specific directory. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When I started switching our stuff to Mapperly, I started getting this error on everything I build:
A partial method may not have multiple implementing declarations
After digging, I found that there is Mapperly Analyzer in the Analyzer "folder" of every project with it, and one for every version of Roslyn in that version of Mapperly's libraries. At build, that means every one of them is generating the partial methods. Even though they match, that's multiple implementation and the builds error out.
For the time being, the work around I found was to manually go into the project.assets.json and remove extra Roslyn dll paths.
I can see that someone else had this with 4.7 and even when trying to switch to 4.8. I'm using the older version of project, not SDK, so I think that's the common factor.
Would it be possible to change up the packaging or make a Mapperly that's for older csproj format that only includes one analyzer?
All reactions