Debugging wrong file location

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 年 前
Good afternoon,

This may be a Visual Studio question more than a nopCommerce question.

I made a copy of our solution on my hard drive so I could experiment with something.  The paths are as follows:

Original C:\Source\Repos\NopCommerceProject

Copy C:\Source\Repos\NopCommerceProjectCopy

I have some breakpoints in a class in a plugin.  When I debug the solution from NopCommerceProjectCopy, the breakpoints are hit in the equivalent file in NopCommerceProject.  For example, I'm running NopCommerceProjectCopy, but I'm being shown breakpoints in NopCommerceProject\Plugins\Plugin.Name\SomeClass.cs.

Why is this?

Thanks!

Jeremy
4 年 前
Check your plugin project's Properties > Build tab, Output Path: Make sure you are using a relative path " ..\.. "

..\..\Presentation\Nop.Web\Plugins\Plugin.Name\
4 年 前
Good morning, New York!

I verified that.  The path is ..\..\Presentation\Nop.Web\Plugins\Plugin.Name.
4 年 前
This answer may looks ugly, but try to debug both of them at a time after changing project port number (i.e localhost:15536).
4 年 前
Hey, mhsjaber.

I just tried your idea.  While they're both running simultaneously, I get an Entity Framework error on one about an open data reader that must be closed before another can be opened.  The connection string in each dataSettings.json points to a different database.

I'm still scratching my head.

Jeremy
4 年 前
Is data reader issue occuring always or only when running simultaneously?
4 年 前
Only when running simultaneously.
4 年 前
mhsjaber wrote:
Is data reader issue occuring always or only when running simultaneously?

Jaber Kibria you are awesome!!!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.