PR - Build with MSBuild 17.0, Visual Studio 2022.
Msbuild error NU1504, Duplicate 'PackageReference' items found for StyleCop.Analyzers.
Purpose
To have a successful build with MsBuild 17.0 , Visual Studio 2022
Does this introduce a breaking change?
[ ] Yes [x] No
Pull Request Type
What kind of change does this Pull Request introduce?
[x] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no api changes) [ ] Documentation content changes [ ] Other... Please describe:
How to Test
git clone https://github.com/MitaWinata/nu1504_build_error
cd nu1504_build_error
git checkout master
msbuild /restore
msbuild IotTelemetrySimulator.sln
What to Check
Verify that the solution can be built.
Other Information
https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1504
Would it work if you removed these lines altogether?
They seem redundant, as Stylecop.Analyzers are already included in all of these .csproj files via <Import Project="../../stylecop.props" /> (stylecop.props content)
ping @MitaWinata :)