Particular / NServiceBus

Build, version, and monitor better microservices with the most powerful service platform for .NET
https://particular.net/nservicebus/
Other
2.1k stars 647 forks source link

NServiceBus Host Invoking Another Main Console Project in VS Solution #2454

Closed cbrown11 closed 10 years ago

cbrown11 commented 10 years ago

I am seeing somthing strange after upgrading from version 4.2 to 4.6.5 (or 4.7).

I have a main console project in my solution that has no reference to NserviceBus or to the Endpoint Services I've created. Now when I start an instance of any the Endpoints, the main on this console project is being called.

Running VS2013.

johnsimons commented 10 years ago

That is strange indeed. Are you sure you don't have multi-projects configured to start in VS?

On Thursday, October 9, 2014, cbrown11 notifications@github.com wrote:

I am seeing somthing strange after upgrading from version 4.2 to 4.6.5 (or 4.7).

I have a main console project in my solution that has no reference to NserviceBus or to the Endpoint Services I've created. Now when I start an instance of any the Endpoints, the main on this console project is being called.

Running VS2013.

— Reply to this email directly or view it on GitHub https://github.com/Particular/NServiceBus/issues/2454.

cbrown11 commented 10 years ago

No. Dont have muti project setup and have the project setup to a single Web project. Start the endpoint(s) by right clicking and selecting debug and then new instance.

When I put a watch on the Program Class its states that the value is NServiceBus.Hosting.Windows.Program. Though this is not reference at all.

This all works fine if I revert back to v4.2

cbrown11 commented 10 years ago

It seems you had a simular issue before in vs2012:

https://groups.yahoo.com/neo/groups/nservicebus/conversations/topics/17563?unwrap=1&var=1

SimonCropp commented 10 years ago

@cbrown11 i had a look at that an it is a non trivial solution. too difficult to debug into. can you provide a simpler way to reproduce this?

JeffreyAllenMiller commented 10 years ago

We have seen this same issue numerous times when running in debug mode. It seems to happen more often if we have the program.cs file open in our tabs On Oct 17, 2014 2:19 AM, "Simon Cropp" notifications@github.com wrote:

@cbrown11 https://github.com/cbrown11 i had a look at that an it is a non trivial solution. too difficult to debug into. can you provide a simpler way to reproduce this?

— Reply to this email directly or view it on GitHub https://github.com/Particular/NServiceBus/issues/2454#issuecomment-59470899 .

SimonCropp commented 10 years ago

moved to https://github.com/Particular/NServiceBus.Host/issues/6

johnsimons commented 10 years ago

Without a reproduction it is very hard to fix this issue. If this is still a problem please reopen and provide more details.