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: http://visualstudiogallery.msdn.microsoft.com/9546d382-7ffa-4fb8-8c0f-b7825d5fd085

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.

9 comments:

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

    1.
    Program
    $(ProjectDir)$(OutputPath)NServiceBus.Host.exe

    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!

    ReplyDelete
  2. Oops, xml got formatted away: https://gist.github.com/965161

    ReplyDelete
  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.

    ReplyDelete
  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.2.5.0.1446\.net 4.0\binaries" on my machine yet ..\..\..\lib\nservicebus\net4\NServiceBus.dll was in the csproj file which isn't valid.

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

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

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

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

    ReplyDelete
  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.

    ReplyDelete