find a location for property in a new city

Tuesday 23 October 2012

Build Visual Studio solutions without Visual Studio

I have a project that has four separate Visual Studio solutions. It is a bit annoying when I do an update from SVN and have to open each solution in Visual Studio just so I can build them. Visual Studio is hardly a lightweight program so surely there's a simpler way?

Most sys admins or developers accustomed to automated builds will probably start to titter at this point, but you can do it easily using NotePad (and the various stuff already installed on your dev machine). I don't want a mega complex system to deploy in a special way to a different server using expensive software, I just want to build everything without having to load many Visual Studio instances. So here is how.

Simple way to build all solutions with a batch file

First open NotePad and write the following code:

@echo off
CALL "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
MSBUILD /v:q C:\Projects\Forums\Forums.sln
MSBUILD /v:q C:\Projects\MainSite.sln
MSBUILD /v:q C:\Projects\Users\UserMgmt.sln
MSBUILD /v:q C:\Projects\Core\Global.sln
PAUSE

Save this as something like BuildAll.bat then whenever you want to build everything just double click this file.

What was that?! Explain (a bit)

To use MSBUILD you must be running the Visual Studio command prompt but by default batch files run in normal compand prompt so line 2 enables all the Visual Studio-ness. Also, I added the /v:q parameter so that MSBUILD wont output every little detail about the build, just the important bits (PASS/FAIL).

Follow britishdev on Twitter

55 comments:

  1. I am a student of computer science and I am following your blogs from the last six months. This post is very informative for me which is about Build Visual Studio solutions without Visual Studio. I have always got some useful stuff from your experience which you share with us in your blog.
    Get safety flooring from uk

    ReplyDelete
  2. This Blog is really useful. Please update more and thank you.

    ReplyDelete
  3. Totally agree with guys, this is usefull blog. For this I can only add, that I found a storage of https://fix4dll.com/msvcp140_dll msvcp140.dll missing. To fix some kind of errors, which may show you program. Useful website, as for me.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. This is really unbelievable and extraordinary work. Everyone should read. Thanks for sharing and don't miss WORLD'S BEST

    #CarGames

    ReplyDelete
  6. Yomovies is the one of the top rated site that offers online free movies,
    video content that viewers can watch on this webpage. From being most

    123Movies

    ReplyDelete
  7. Bigg Boss is a television reality show broadcast on Colors channel in India.
    Later on Day 14, one of Day 1 evicted housemate enter the house as a Wild-Card.

    Bigg Boss 14
    ======================================

    ReplyDelete
  8. Buy online wholesale printed custom candle boxes and packaging at easy prices and shipping worldwide, with 24/7 customer support. Get a free custom quote now!!

    ReplyDelete
  9. Buy online wholesale printed lipstick boxes and packaging at easy prices and shipping worldwide, with 24/7 customer support. Get a free custom quote now!!

    ReplyDelete
  10. Buy online wholesale lipstick boxes and packaging at seashore packaging at the easy price Free shipping worldwide with 24/7 customer support.

    ReplyDelete
  11. Packaging town is a one-stop solution for the short-run Custom Packaging, Wholesale CBD Boxes needs, and supplies at ease.

    ReplyDelete
  12. will he find love beyond the chains
    of duty? Watch Badtameeadil Episodes Online Daily, You can watch highlight and latest your favorite Serials.



    Molkki Watch Online

    Imlie Watch Online

    ReplyDelete
  13. custom printed mylar bags UK in stock now. Ready made Cali pack designs. Fast Shipping at Your Supplies. Custom designs available

    ReplyDelete
  14. custom direct print mylar bags uk in stock now. Ready made Cali pack designs. Fast Shipping at Your Supplies. Custom designs available

    ReplyDelete
  15. Blackbird packaging company can provide you with any size, shape design, and crafted cbd vape cartridge packaging sooner than any other packaging competitor in the market

    ReplyDelete
  16. vaccum cleaners
    Shop for Electronic Goods at Al-Fatah, Pakistan's leading chain of departmental stores. Shop from a huge range of top brands Home Appliances, Smart-tech and Phones and Sound bars from Al-Fatah. Shop from huge range of electronics available at Al-Fatah. Avail Free Delivery on orders above 1000 PKR in selected cities.

    ReplyDelete
  17. buy lahore electronics from alfatah at best prices. get free shipping

    ReplyDelete
  18. buy online zipper hoodie online from wild goat clothing at best prices. Get Free shipping

    ReplyDelete
  19. buy bath bomb boxes from blackbird packaging at best prices. Get free shipping.

    ReplyDelete
  20. Buy pret collection 2021 online from Ilaha Clothing at best prices. Get free shipping.

    ReplyDelete
  21. Packaging town is a one stop solution for the short-run luxury apparel boxes needs and supplies. At affordable prices. Request a free quote now.

    ReplyDelete
  22. Packaging town is a one stop solution for the short-run business card boxes needs and supplies. At affordable prices. Request a free quote now.

    ReplyDelete
  23. Packaging town is a one stop solution for the short-run custom sleeve boxes needs and supplies. At affordable prices. Request a free quote now.

    ReplyDelete
  24. buy mother care pk in pakistan from medisense at best prices. Get free shipping

    ReplyDelete
  25. buy gym tights online from dshred at best prices. Get free delivery

    ReplyDelete
  26. buy gym tights online from Dshred at easy prices delivered at your doorstep. Get free shipping

    ReplyDelete
  27. buy baby food online pakistan from Medisense.pk delivered at your doorstep at best prices. Get free shipping

    ReplyDelete
  28. buy reflective vest online from Dshred at best prices delivered at your doorstep. Get free shipping

    ReplyDelete
  29. Idhayathai Thirudathe's all related and exclusive video updates with BTS and social video posta at one place of Idhayathai Thirudathe everyday.

    ReplyDelete
  30. buy reflective vest online from dshred at easy prices delivered at your doorstep.get free shipping.

    ReplyDelete
  31. buy cosmetics in lahore from alfatah at best prices delivered at your doorstep. get free delivery

    ReplyDelete
  32. buy supplements in pakistan online from medisense at best prices deloivered at your doorstep. get free shipping

    ReplyDelete
  33. Buy all kind of medicine online pharmacy lahore at affordable prices from medisense delivered at your doorstep. Get free shipping.

    ReplyDelete
  34. Buy facial products in pakistan at easy prices from medisense delivered at your doorstep. Get free shipping.

    ReplyDelete
  35. buy mesh bra for women online from dshred at easy prices delivered at your doorstep. get free shipping

    ReplyDelete
  36. buy comfort wear for women online from Dshred at best prices delivered at your doorstep. get free shipping

    ReplyDelete
  37. Sometimes you just want to relax at home, but how can one relax if they do not feel comfortable? That is why Dshred is offering the most comfortable Women Loungewear products available. Get our knitted loungewear sets for maximum comfort or our Women loungewear tracksuits if you plan to go out for a bit.

    ReplyDelete
  38. Watch all latest videos of drama melayu soaps online daily in HD.

    ReplyDelete
  39. Family Tamil tv serial Eramana Rojave from Vijat TV at Eramana Rojave Tamil Dhool TV in high qiality.

    ReplyDelete
  40. Mais recente transmita Grátis online ou baixe Novela A Vida da Gente Capítulo sexta-feira

    ReplyDelete
  41. buy gym wear online in Pakistan from dshred at easy prices delivered at your doorstep. Get free shipping

    ReplyDelete
  42. buy electronics online in lahore from Al-Fatah at best prices delivered at your doorstep. Get free shipping

    ReplyDelete
  43. Buy home appliances online at best prices from Al-Fatah delivered at your doorstep. Get free shipping

    ReplyDelete
  44. Buy [b][url=https://www.alfatah.pk/collections/dog-accessories]dog food online[/url][/b] from Al-Fatah at best prices delivered at your doorstep. Get free shipping

    ReplyDelete
  45. From Ndure buy the best quality men trouser online at affordable price. Fast Shipping.

    ReplyDelete
  46. Buy the trending shorts men online from Ndure. Quick delivery.

    ReplyDelete
  47. Buy comfortable yoga tights online from Ndure. Fast Shipping.

    ReplyDelete
  48. Buy grocery in Pakistan at best prices delivered at your doorstep. get free shipping

    ReplyDelete

  49. Kasam Tere Pyar Ki 2 (KTPK 2) is all set to steal our hearts, yet again, on the Colors TV channel.

    Kasam Tere Pyaar Ki season 2 will release on January 2022, was a super-hit romantic Hindi TV serial.

    Sirf Tum

    ReplyDelete
  50. dramacooleng.com Dramacool is the best platform offering you a good selection of dramas and kshow. Our consistently high-quality videos will not let you down.
    Both the sound quality and the subtitles of dramas on this site are excellent, and they have been synched with the videos incredibly well.

    ReplyDelete
  51. Most sys admins or developers accustomed to automated builds will probably start to titter at this point, but you can do it easily using NotePad
    please visit link Tel-U

    ReplyDelete