Skip to content

Reduce Build warnings to zero #22240

Closed
Closed
@wtgodbe

Description

@wtgodbe

Using this as a tracking issue to get our repo down to zero recurring build warnings, so that we can turn on /warnaserror. Most common warnings are ranked below

Count Warning Notes Issue
600+ Atleast for one assembly start time was not obtained due to tag not present or parsing issue, total run duration will now be summation of time taken by each assembly Happens while publishing quarantined test results #22241
120+ Could not parse Jtokens from F:\workspace_work\1\s\artifacts\tmp\Release\ContainerSigning\2455\content\ReactRedux-CSharp\ClientApp\package-lock.json file. Happens during Component Detection #22243
28+ CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Happens in all regular build steps #22389
27 warning MSB4011: "F:\workspace_work\1\s.packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20261.9\tools\BuildTasks.props" cannot be imported again. Happens in most build steps #22244
21 Component Governance detected 5 security related alerts at or above 'High' severity. Happens during Component Detection #22252
18 in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). Happens in the 6 main build jobs #22390
10 Converting null literal or possible null value to non-nullable type. Happens in the 6 main build jobs #22733
9 Executable bit is not set on target script, sourcing instead of executing. Happens during Setup Private Feed Credentials #22245
4 Microsoft.Common.CurrentVersion.targets(778,5): warning : The OutputPath property is not set for project 'helix.proj'. Happens during Test Helix x64 #22246
2 warning NU5119: File 'F:\workspace_work\1\s\artifacts\obj\RedistSharedFx.Layout\Release\win-x64\shared\Microsoft.AspNetCore.App\5.0.0-preview.6.20275.3.version' was not added to the package. Happens during SiteExtension build #22247
2 warning NU5118: File 'Microsoft.AspNetCore.AzureAppServices.HostingStartup.deps.json' is not added because the package already contains file 'Microsoft.AspNetCore.AzureAppServices.HostingStartup.deps.json' Happens during SiteExtension build #22248
2 unknown substitution variable ${shlibs:Depends} Happens during Linux x64 Debian Installer build #22249
1 warning : This project has native dependencies which were not built. [F:\workspace_work\1\s\src\SiteExtensions\Runtime\Microsoft.AspNetCore.Runtime.SiteExtension.pkgproj] Happens during SiteExtension build #22250
1 E2ETesting.targets(23,5): warning : Waiting for the other yarn instance to finish (7228) [F:\workspace_work\1\s\src\ProjectTemplates\BlazorTemplates.Tests\BlazorTemplates.Tests.csproj] Happens during Windows Template Tests #22251

Metadata

Metadata

Assignees

No one assigned

    Labels

    DoneThis issue has been fixedarea-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions