Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Build Visual Studio .Net 2003 and 2005 solutions or projects by right clicking in Explorer

, 26 Jul 2006
Implementing a Windows Shell Extension to provide "Build Here" functionality
vs_buildhere_demo.zip
VS_BuildHere_src.exe
vs_buildhere_src.zip
VS BuildHere Src
@rem Author: Priyakant Patel
@rem http://www.priyakant.com

@prompt $S

@findstr "<.*ProductVersion.*>.*8.*</.*ProductVersion.*>" %1
@IF %ERRORLEVEL% LSS 1 goto LABEL_VS8

@findstr ".*Format.*Version.*9" %1
@IF %ERRORLEVEL% LSS 1 goto LABEL_VS8

@findstr "#.*Visual.*Studio.*2005" %1
@IF %ERRORLEVEL% LSS 1 goto LABEL_VS8

:LABEL_VS7
@cls
@echo *** *** Project is a Microsoft Visual Studio .Net 2003 *** ***
Call "%VS71COMNTOOLS%vsvars32.bat"
@echo **** building following solution in ~~Release~~ mode ****
@echo %1
@devenv %1 /rebuild Release

@goto LABEL_END

:LABEL_VS8
@cls
@echo *** *** Project is a Microsoft Visual Studio .Net 2005 *** ***
Call "%VS80COMNTOOLS%vsvars32.bat"
@echo **** building following solution in ~~Release~~ mode ****
@echo %1
@devenv %1 /rebuild Release

@goto LABEL_END

@echo Before end
:LABEL_END
@echo Hit enter to exit
@pause
@exit

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Priyakant Patel
Technical Lead XXX
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141216.1 | Last Updated 26 Jul 2006
Article Copyright 2006 by Priyakant Patel
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid