Not able to build the correct win-x64 version from source

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 年 前
Hi all,

on my development environment I have a site running in version 4.40.4 from the "nopCommerce_4.40.4_NoSource_win_x64.zip" file.

On the same machine I have VS 2022 with the source version from the file "nopCommerce_4.40.4_Source.zip".

I want to do some debugging/minor change in noCommerce so I published from Visual Studio to a separate folder and used the Release configuration with the .NET 5.0 target framework and the win-x64 runtime.
From the publish-folder I only copied some of the nopCommerce .dll's to my running development site. After restarting .NET Core app failed to start and in the event-viewer I see messages like "PublicKeyToken=null' is not compatible with base type method 'Nop.Web.Framework.Models.BaseNopEntityModel.<Clone>$()'."

This looks like to me like there is some kind of version difference between the initial version that I used from the no source-win-x64.zip and my published version, which is also the win-x64 version.

Has anyone encountered this behaviour before and a way to solve this? I might be overlooking something.
2 年 前
https://github.com/nopSolutions/nopCommerce/issues/5981
https://www.nopcommerce.com/en/boards/topic/92619/error-method-clone-in-type-on-start-when-loading-some-plugins/page/2
2 年 前
Thanks, I could not find that post on the forum. Gonna try to build it in VS 2019 and see if I can resolve it.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.