jstangroome/NuGetReferenceHintPathRewrite

Fixing NuGet analyzer references as well

Closed this issue · 1 comments

jnm2 commented

We have some projects with NuGet references shared between more than one solution, and NuGetReferenceHintPathRewrite is a life saver.

Would you add the ability to fix analyzer references at the same time as normal references? We just started using NuGet analyzers and ran into the same problem.

I looked at the .targets file but the analyzers use <Analyzer Include="{path}" />, which is not quite the same as <Reference Include="{name}"><HintPath>{path}</HintPath></Reference>. It looks like the change might be simple but I'm not an MSBuild guru and I can't find documentation on how %() works.

jnm2 commented

We are a long ways away from the days of packages.config, thank goodness!

*rereads post*

And from the days of sharing projects rather than packages between solutions! 😜