-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Closed
Copy link
Labels
Description
Context
A case that seems as a false positive of the BC0203
Repro steps
- Create project:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>true</IsPackable>
<!-- packaging properties -->
<PackageVersion>1.2.3</PackageVersion>
<Title>Some library</Title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<PackageId>SomeLib</PackageId>
</PropertyGroup>
</Project>
- Build:
dotnet pack /check /v:d /bl - Observe the
ownersproperty being flagged - which is correct:
C:\repro\TestProj.csproj (11,5): https://aka.ms/buildcheck/codes#BC0203 - Property: [owners] was declared/initialized, but it was never used.
- Observe the
Titleproperty being flagged - which is false positive:
C:\repro\TestProj.csproj (11,5): https://aka.ms/buildcheck/codes#BC0203 - Property: [Title] was declared/initialized, but it was never used.
