dotnet / dotnet/msbuild

BC0202 triggers on NuGet property "Description" that seems like false positive?

Open
#10,878 1 comment 0 reactions 0 assignees View on GitHub
Area: BuildCheck triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Issue Description

I'm trying out the new BuildChecks and I'm seeing BC0202 for the NuGet package property ``. It feels like one of two things is true. Either:

1. This is a false positive
2. The BuildCheck docs should be updated with additional details to explain how / why this scenario is a violation

### Steps to Reproduce

git clone https://github.com/MattKotsenas/moq.analyzers
git checkout bbb213d
dotnet build /check

### Expected Behavior

- No BuildCheck warnings

### Actual Behavior

- C:\Program Files\dotnet\sdk\9.0.100-rc.2.24474.11\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(33,5): warning BC0202: https://aka.ms/buildcheck/codes#BC0202 - Property: 'Description' first declared/initialized at D:\Projects\moq.analyzers\src\Analyzers\Moq.Analyzers.csproj (19,5) used before it was initialized.

### Analysis

_No response_

### Versions & Configurations

```powershell
> dotnet --version
9.0.100-rc.2.24474.11
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.