Skip to content
This repository has been archived by the owner on Oct 18, 2018. It is now read-only.

Build warning and error codes

Nate McMaster edited this page Apr 9, 2018 · 1 revision

This page documents the warning and error codes that may be produced when building ASP.NET Core, and what the code means.

Messages

Potentially unused external dependency

Detection of external dependencies may issue a message about potentially unused external dependencies. This analysis only detects PackageReference, but it is possible external dependencies may be used in other ways, such as:

  • implicit package references (like NETStandard.Library and Microsoft.NETCore.App)
  • packages that are nuspec only dependencies, like MVC's dependency on Microsoft.DiaSymReader.Native
  • packages that are used as MSBuild SDKs, packages.config, or other types of NuGet restore that are not a PackageReference
  • packages are used in projects not normally built during a Universe build

To determine if this is the case, you typically need to search the source code to find places where the package is referenced

Warnings

TODO: list warnings

Errors

TODO: list errors