Plugin pulled from Git unable to be used

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 yıl önce
Good Morning Tech team,

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
4 yıl önce
Hello,

Why don't you try using relative paths for the Output Path attribute rather than absolute ones?
For instance, if the source code of the plugin you are building is in the ~/Plugins/Widgets.AkoSlider directory and you want to build it in the ~/Presentation/Nop.Web/Plugins/Widgets.AkoSlider you will have to set your Output Path to:
../../Presentation/Nop.Web./Plugins/Widgets.AkoSlider

Hope that helps!

Regards,
Anton
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.