Closed
Description
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 |
- Fix warning "Atleast for one assembly start time was not obtained due to tag not present or parsing issue" #22241
- Fix warning "Could not parse Jtokens from ...package-lock.json file." #22243
- Fix warning "7 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." #22244
- Fix warning 'Executable bit is not set on target script, sourcing instead of executing.' #22245
- Fix warning "The OutputPath property is not set for project 'helix.proj'." #22246
- Fix warning "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." #22247
- Fix warning " warning NU5118: File 'Microsoft.AspNetCore.AzureAppServices.HostingStartup.deps.json' is not added because the package already contains file 'Microsoft.AspNetCore.AzureAppServices.HostingStartup.deps.json'" #22248
- Fix warning "unknown substitution variable ${shlibs:Depends}" #22249
- Fix warning "warning : This project has native dependencies which were not built. [F:\workspace_work\1\s\src\SiteExtensions\Runtime\Microsoft.AspNetCore.Runtime.SiteExtension.pkgproj]" #22250
- Fix warning "Waiting for the other yarn instance to finish" #22251
- Fix warning "Component Governance detected 5 security related alerts at or above 'High' severity." #22252
- Fix warning: "CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context." #22389
- Fix warning: "in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB)." #22390
- Fix warning: "CS0618: 'RelationalIndexBuilderExtensions.HasName(IndexBuilder, string)' is obsolete" #22630
- Fix warning "LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification" #22632
- Fix warning "warning MSB3026: Could not copy "F:\workspace\_work\1\s\.packages\..." #22635
- Fix warning "##[warning]SetCookieHeaderValueTest.cs(423,67): warning CS8600: (NETCORE_ENGINEERING_TELEMETRY=Build) Converting null literal or possible null value to non-nullable type." #22733
- Fix
nullable
warnings when building test code #22992