Friday, May 6, 2011

Introducing NServiceBus Visual Studio Templates

I really got tired of creating the same projects over and over so I decided to create some templates. I packaged them up and put them on the Visual Studio Gallery:

Right now it only includes a few project templates and a few items. If you are using the project templates there is a custom wizard that will prompt you for a path to the NSB binaries. This will auto adjust the HintPath in the project file to point to that directory.

I'm planning on adding more endpoints and some complete solutions in the near future. Let me know what you are looking for via the gallery so I can keep track of it there.


  1. Good stuff, would be great of you could add:


    at the end of the .csproj to set the host as startup exe

    2. Could the hint path be set relative to the selected path?

    Keep up the good work!

  2. Oops, xml got formatted away:

  3. Sounds good on both accounts. I will take a look and see if I have access to the chosen project directory at that point in the wizard. If not, at the very least I will allow the user to enter the path.

  4. Thanks for the templates. I downloaded version from 5/12/2011.

    I created a publisher and browsed to NServiceBus dll's "C:\Community.NServiceBus.\.net 4.0\binaries" on my machine yet ..\..\..\lib\nservicebus\net4\NServiceBus.dll was in the csproj file which isn't valid.

  5. I created more projects and the message project did put the correct path in the csproj file but not the other 3.

  6. @maggieplusplus - I will check into these today, did you download them from the gallery?

  7. @maggieplusplus - this has been corrected, see version 1.2 in the gallery

  8. Hi. I neef to install nservicebus template for vs14 but i cant ?

  9. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from .Net Core Training in Chennai. or learn thru .Net Core Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
    or Es6 Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.