更改vs解决方案版本

当前解决方案名为 ProtocolBuffers.sln,

1新建bat文件UseVS2010,
2将以下文件粘到bat文件中
@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

1新建bat文件UseVS2015,
2将以下文件粘到bat文件中
@ECHO OFF
REM ---- Converts the solution to Visual Studio 2015 ----
PUSHD %~dp0
ECHO Microsoft Visual Studio Solution File, Format Version 14.00> Temp.sln
ECHO # Visual Studio 2015>> Temp.sln
type ProtocolBuffers.sln | FIND /V " Visual Studio " >> Temp.sln
move /Y Temp.sln ProtocolBuffers.sln
POPD

你可能感兴趣的:(更改vs解决方案版本)