Click here to Skip to main content
12,404,278 members (75,336 online)
Click here to Skip to main content

Stats

40.4K views
531 downloads
23 bookmarked
Posted

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
@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
Architect
United States United States
No Biography provided

You may also be interested in...

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