Problem Description

While running .NET analysis you get the below type of warnings in your analysis log:

DOTNET.0142:No ressource found for package Microsoft.AspNetCore.Razor.Design. Package reference ignored in project S:\Sources\Platform\Source\iot-cloud\src\Test.DataService\Test.Iot.DataService.csproj
DOTNET.0142:No ressource found for package Microsoft.Azure.Devices. Package reference ignored in project S:\Sources\Platform\Source\iot-cloud\src\Test.Iot.DataService\Test.Iot.DataService.csproj
DOTNET.0142:No ressource found for package Microsoft.Azure.Devices.Client. Package reference ignored in project S:\Sources\Platform\Source\iot-cloud\src\Test.Iot.DataService\Test.Iot.DataService.csproj
DOTNET.0142:No ressource found for package Microsoft.ServiceFabric.AspNetCore.Kestrel. Package reference ignored in project S:\Sources\Platform\Source\iot-cloud\src\Test.Iot.DataService\Test.Iot.DataService.csproj
DOTNET.0142:No ressource found for package Microsoft.VisualStudio.Web.CodeGeneration.Design. Package reference ignored in project S:\Sources\Platform\Source\iot-cloud\src\Test.Iot.DataService\Test.Iot.DataService.csproj
DOTNET.0142:No ressource found for package Swashbuckle.AspNetCore. Package reference ignored in project S:\Sources\Platform\Source\iot-cloud\src\Test.Iot.DataService\Test.Iot.DataService.csproj

Observed in CAST Extension Version


Release

Yes/No

1.2(tick) 
Observed in RDBMS

RDBMS

Yes/No

CSS3 (tick) 
CSS2 (tick) 
Step by Step Scenario
  1. Package the source code
  2. Run the analysis
Action Plan

Perform the below actions

  1. Check in the analysis log to find out from which project (analysis unit) the warnings are coming.

  2. Go to that analysis unit and navigate to the corresponding project file in the deploy folder.
  3. Open the project file and check the packages referred to in the PackageReference tag as seen in the screenshot below.
  4. Check in the deploy folder if those packages (.nupkg) files are present, if not you need to have those NuGet files so that the analyzer should use the packages and resolve it and hence no warnings in the analysis log.
  5. If the packages are present in the deploy folder still you are getting the warnings, then you need to keep the corresponding referred packages in the root folder of the project. Ideally, this is not the way (it can be present anywhere in the deploy folder tree) but in NET 1.3.0 funcrel we have a bug in which the packages should be present in the root folder of the project.
  6. If the warnings are still there then contact CAST Technical Support. with the Relevant Input for the reproduction of the issue
Notes/comments

Ticket # 26234