Commit 2622011a authored by csharptest's avatar csharptest Committed by rogerk

Removed the 2008 solution and created batch files to toggle the solution to the

desired version of Visual Studio.
parent eac64a5f
This diff is collapsed.
@ECHO OFF
REM ---- Converts the solution to Visual Studio 2008 ----
PUSHD %~dp0
ECHO Microsoft Visual Studio Solution File, Format Version 10.00> Temp.sln
ECHO # Visual Studio 2008>> Temp.sln
type ProtocolBuffers.sln | FIND /V " Visual Studio " >> Temp.sln
move /Y Temp.sln ProtocolBuffers.sln
POPD
@ECHO OFF
REM ---- Converts the solution to Visual Studio 2010 ----
PUSHD %~dp0
ECHO Microsoft Visual Studio Solution File, Format Version 11.00> Temp.sln
ECHO # Visual Studio 2010>> Temp.sln
type ProtocolBuffers.sln | FIND /V " Visual Studio " >> Temp.sln
move /Y Temp.sln ProtocolBuffers.sln
POPD
@ECHO OFF
IF "%1" == "2008" GOTO COPY2008
IF "%1" == "2010" GOTO COPY2010
GOTO HELP
:COPY2008
type ProtocolBuffers.sln | FIND " Visual Studio " > Temp.sln
type ProtocolBuffers2008.sln | FIND /V " Visual Studio " >> Temp.sln
move /Y Temp.sln ProtocolBuffers.sln
GOTO EXIT
:COPY2010
type ProtocolBuffers2008.sln | FIND " Visual Studio " > Temp.sln
type ProtocolBuffers.sln | FIND /V " Visual Studio " >> Temp.sln
move /Y Temp.sln ProtocolBuffers2008.sln
GOTO EXIT
:HELP
ECHO.
ECHO Specify the Visiual Studio edition (2008/2010)
ECHO Example: %~nx0 2008
ECHO.
:EXIT
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment