Iot-Telemetry-Simulator icon indicating copy to clipboard operation
Iot-Telemetry-Simulator copied to clipboard

PR - Build with MSBuild 17.0, Visual Studio 2022.

Open MitaWinata opened this issue 3 years ago • 2 comments

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

MitaWinata avatar Sep 13 '22 12:09 MitaWinata

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)

gukoff avatar Mar 09 '23 09:03 gukoff

ping @MitaWinata :)

gukoff avatar Apr 14 '23 11:04 gukoff