Our team has just started with nopCommerce 4.20 from scratch and we've used Git on Azure Devops for our repository. Our team mate uploaded his newly created Widgets and pushed it to the repository. Upon pulling, we've encountered this error below:
Could not copy "D:\CompanyName\nopCommerce\src\Libraries\Nop.Core\bin\Debug\netcoreapp2.2\Nop.Core.pdb" to "F:\Files\GitHub\CompanyName\nopCommerce\src\Presentation\Nop.Web\Plugins\Widgets.AtoSlider\Nop.Core.pdb". Exceeded retry count of 10. Failed.
Which appears to have been from
<OutputPath>F:\Files\GitHub\CompanyName\nopCommerce\src\Presentation\Nop.Web\Plugins\Widgets.AkoSlider\</OutputPath>
under the .csproj of every pulled widget.
When we changed the output path (the output path of our teammate who created the widget) to ours, D:\CompanyName, errors still came here and were pointing to this line of code:
<Copy
SourceFiles="@(ReferenceCopyLocalPaths)"
DestinationFiles="@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)')"
SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
Retries="$(CopyRetryCount)"
RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
UseHardlinksIfPossible="$(CreateHardLinksForCopyLocalIfPossible)"
UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyLocalIfPossible)"
Condition="'$(UseCommonOutputDirectory)' != 'true'"
>
Further investigation pushed us that every after build, it would reinstate the code back to
<OutputPath>F:\Files\GitHub\CompanyName\nopCommerce\src\Presentation\Nop.Web\Plugins\Widgets.AkoSlider\</OutputPath>
when it was changed to
<OutputPath>D:\CompanyName\nopCommerce\src\Presentation\Nop.Web\Plugins\Widgets.AkoSlider\</OutputPath>
already.
Regards,
Merrick Lance