Compilation errors in nopCommerce 4.00

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi All,

Downloaded the nop_Source loaded in Visual Studio and try to compile.
I can't compile nopCommerce 4.00, still after install AspNetCore-SDK-2.0 for Windows x64, update of Visual Studio 2017, clean successfully the solution.
Allowing or not Nuget downloading of missing packages.
With build solution or rebuild I receive the same error messages of type:

Severity  Code  Description  Project  File  Line  Suppression State
Error  CS0006  Metadata file 'D:\BKP2\internet\BKP\ECommerce\nopCommerce_4.00_Beta\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Data  D:\BKP2\internet\BKP\ECommerce\nopCommerce_4.00_Beta\Libraries\Nop.Data\CSC  1  Active
Error  CS0006  Metadata file 'D:\BKP2\internet\BKP\ECommerce\nopCommerce_4.00_Beta\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll' could not be found  Nop.Services  D:\BKP2\internet\BKP\ECommerce\nopCommerce_4.00_Beta\Libraries\Nop.Services\CSC  1  Active


Warnings:

Severity  Code  Description  Project  File  Line  Suppression State
Warning  MSB3277  Found conflicts between different versions of the same dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.  Nop.Core  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets  1988
  

And the type of errors: (but I think that this is because of lack of Nop.Core Nop.Data, Nop.Services etc...)

Severity  Code  Description  Project  File  Line  Suppression State
Error  CS0234  The type or namespace name 'Primitives' does not exist in the namespace 'Microsoft.Extensions' (are you missing an assembly reference?)  Nop.Core  D:\BKP2\internet\BKP\ECommerce\nopCommerce_4.00_Beta\Libraries\Nop.Core\Caching\MemoryCacheManager.cs  6  Active
6 years ago
Hi,

Make sure you are using Vs 2017 update 3 (or above).
Did you update your VS2017 to the latest update?

Thanks,
Boyko
6 years ago
I go to Extensions and Updates and applied the cumulative update.
Now the Updates says "No items found".
But I solve the problem copying the dlls from Nop_NoSource package and place it in the referenced folders ex:
D:\BKP2\internet\BKP\ECommerce\nopCommerce_4.00_Beta\Libraries\Nop.Core\bin\Debug\net461\Nop.Core.dll

That is weird, but was the rapid solution that I found for now...
6 years ago
I have the same problem! I will try to resolve it in your way
6 years ago
hi,
I have little bit same problem  but this solution is not working for me. please tell me I you have any solution in your mind.
this is my issue:
https://www.nopcommerce.com/boards/t/51286/unable-to-biuld-nopcommerce-4-in-vs17-community.aspx
6 years ago
hi,
I have little bit same problem  but this solution is not working for me. please tell me I you have any solution in your mind.
this is my issue:
https://www.nopcommerce.com/boards/t/51286/unable-to-biuld-nopcommerce-4-in-vs17-community.aspx
6 years ago
I had a similar issue and seems to be related to permissions on some files. I resolved it using a tip from another post to unblock files. Please check this link on how to unblock.

http://www.codeproject.com/Articles/470052/Unblock-downloaded-files-with-PowerShell

After unblocking recursively, please try to recompile.
5 years ago
I have downloaded nopCommerce 4.10 and I am getting error on build the project at first time.

Errors are like

predefined type 'system.string' is not defined or imported
predefined type 'system.object' is not defined or imported

The TargetFrameworkAttribute exist in both System.RunTime 4.2.1.0 and System.RunTime 4.1.0.0
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.