Debugging wrong file location

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 4 años
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
Hace 4 años
Check your plugin project's Properties > Build tab, Output Path: Make sure you are using a relative path " ..\.. "

..\..\Presentation\Nop.Web\Plugins\Plugin.Name\
Hace 4 años
Good morning, New York!

I verified that.  The path is ..\..\Presentation\Nop.Web\Plugins\Plugin.Name.
Hace 4 años
This answer may looks ugly, but try to debug both of them at a time after changing project port number (i.e localhost:15536).
Hace 4 años
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
Hace 4 años
Is data reader issue occuring always or only when running simultaneously?
Hace 4 años
Only when running simultaneously.
Hace 4 años
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.