Check duplications of NuGet packagesSummary Release Notes
What’s the problem?You may have encountered a situation where your solution has 2 or more projects that each one of the projects uses different version of a certain NuGet package. lets take NLog as an example:
Project A is a WebAPI project that its deployble artifact (Published website) has the standard folder layout with one Bin folder. in order to make sure you will one version of the NLog package you can use the "Consolidate" tab in the NuGet package explorer in Visual studio. Solution:The Build/Release task scans your packages folder in the root of the solution and looks for duplicate versions of a single NuGet package to avoid surprises in the PublishedWebSite bin folder. ##make you sure to place the task after the 'NuGet restore' task## Example:Enter the required parameter values for the task: Working Directory- Mandatory Field Search Pattern- Mandatory Field |