Upgrade from 3.9 to 4.6 Error CS0006 Metadata, .dll file missing

4 months ago
I am upgrading Nop 3.9 to Version 4.6, when I load my project on Visual Studio 2022, and rebuild, it throws a list of 11 errors for the nop default plugins .dll files are missing from the debug ref folder.  

Severity  Code  Description  Project  File  Line  Suppression State
Error  CS0006  Metadata file 'C:\Projects\nopCommerce_4.60.3_Source\src\Presentation\Nop.Web\obj\Debug\net7.0\ref\Nop.Web.dll' could not be found  Nop.Plugin.Widgets.NivoSlider  C:\Projects\\nopCommerce_4.60.3_Source\src\Plugins\Nop.Plugin.Widgets.NivoSlider\CSC  1  Active

Severity  Code  Description  Project  File  Line  Suppression State
Error  CS0006  Metadata file 'C:\Projects\nopCommerce_4.60.3_Source\src\Presentation\Nop.Web\obj\Debug\net7.0\ref\Nop.Web.dll' could not be found  Nop.Plugin.Misc.Sendinblue  C:\Projects\nopCommerce_4.60.3_Source\src\Plugins\Nop.Plugin.Misc.Sendinblue\CSC  1  Active


Severity  Code  Description  Project  File  Line  Suppression State
Error  CS0006  Metadata file 'C:\Projects\nopCommerce_4.60.3_Source\src\Presentation\Nop.Web\obj\Debug\net7.0\ref\Nop.Web.dll' could not be found  Nop.Tests  C:\Projects\nopCommerce_4.60.3_Source\src\Tests\Nop.Tests\CSC  1  Active

and Nop.Web\obj\Debug\net7.0 folder is empty
https://i.postimg.cc/5yFDZrgd/empty-debug-ref-folder.png

any help would be much appreciated
Regards
4 months ago
Are you able to build the Nop.Core, Nop.Data, Nop.Services Projects
They need to build before you can build Nop.Web.Framework
Then you can build Nop.Web which references them all
Depending on which references you have used in the Plugins either Nop.Web and/or Nop.Web.Framework then they can be built.

In theory Visual Stuio should do it all in order so that it all builds
but I am wondering how you went about the Upgrade:
Did you take the v3.9 and edit it and try to make it v4.6
Or did you start with v4.6 and incorporate the customisations required from v3.9
Hopefully it was the later ?
4 months ago
Yidna wrote:
Are you able to build the Nop.Core, Nop.Data, Nop.Services Projects
They need to build before you can build Nop.Web.Framework
Then you can build Nop.Web which references them all
Depending on which references you have used in the Plugins either Nop.Web and/or Nop.Web.Framework then they can be built.

In theory Visual Stuio should do it all in order so that it all builds
but I am wondering how you went about the Upgrade:
Did you take the v3.9 and edit it and try to make it v4.6
Or did you start with v4.6 and incorporate the customisations required from v3.9
Hopefully it was the later ?


Hello Yidna,
Many thanks for your response, your response always very helpful and much appreciated.
Are you able to build the Nop.Core, Nop.Data, Nop.Services Projects
Ok , I can build for Nop.Core, Nop.Data, Nop.Services projects successfully
They need to build before you can build Nop.Web.Framework
Yes I have built in this sequence
Then you can build Nop.Web which references them all
But Nop.web rebuilding with 1 failed "Nop.Web.csproj"

5>Done building project "Nop.Web.csproj" -- FAILED.
========== Rebuild All: 4 succeeded, 1 failed, 0 skipped ==========
========== Rebuild started at 2:21 PM and took 01:14.634 minutes ==========



Depending on which references you have used in the Plugins either Nop.Web and/or Nop.Web.Framework then they can be built.
I agree with you. Thanks

In theory Visual Stuio should do it all in order so that it all builds
but I am wondering how you went about the Upgrade:
Did you take the v3.9 and edit it and try to make it v4.6
I was following the upgrade process from the document provided below.
https://docs.nopcommerce.com/en/installation-and-upgrading/upgrading-nopcommerce.html
1.  I have to upgrade all sub versions one after another from 3.0 to 4.00, then to 4.10, and then to 4.20. download database upgrade script , execute it over your database. And move to the next version upto 4.30

2.   For version 4.4 update the database connection in dataSettings.json file and build the project, move to the next sub version upto 4.6 and then finally move the customisation from the v3.9 to 4.6 . yes it is the later option from your query below


Or did you start with v4.6 and incorporate the customisations required from v3.9
Hopefully it was the later ?


Please advise if I am doing anything different

any advice would be much appreciated and many thanks in advanced