<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] ### vs2010 #### 用vs2010的devenv編譯項目語法: ``` C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe /build "Release|Win32" "xxx.sln" /out build.log ``` 腳本示例msbuild.bat: ``` SET FILENAME=%1 SET PACKAGE_FILES=%cd% set LOG=%PACKAGE_FILES%\build.log cd .. SET bbd=%cd% ::最后一位 SET REBUILD=%2 if "%REBUILD%"=="" ( SET REBUILD="build" )else ( SET REBUILD="Rebuild" ) SET SLNFILE=%bbd%\%FILENAME%\xxx.sln SET DEVENV2010="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" ::-----------start build ... if not exist "%bbd%\%FILENAME%" ( echo "%bbd%\%FILENAME% is not exist!!" goto :eof ) echo "-----------start DEVENV2010 ..." if exist "%SLNFILE%" ( if exist "%LOG%" del "%LOG%" %DEVENV2010% /build "Release|Win32" "%SLNFILE%" /out "%LOG%" ::&& tail -f "%LOG%" ) else ( echo "%SLNFILE% is not exist,start call build.bat ..." goto :eof ) echo "-----------end DEVENV2010 ..." rem -----------end build ... :: -----------start move file ... cd "%PACKAGE_FILES%" call move_exe.bat %1 rem -----------end move file ... ::-----------start packge file ... cd "%PACKAGE_FILES%" call nsis.bat rem -----------end packge file ... ``` #### nsis打包項目的命令語法: ``` $ makensis.exe xxx_new.nsi ``` 移動編譯好的文件到nsis的打包目錄 nsis.bat ``` SET PACKAGE_FILES=%cd% cd .. SET nsisdevC= %cd%\NSIS\makensis.exe SET FILENAME=xxx_new.nsi echo %nsisdevC% cd %PACKAGE_FILES% %nsisdevC% %PACKAGE_FILES%\%FILENAME% ``` ### vs2017 #### 利用vs2017 的msbuild來編譯 語法: ``` C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe %xxx.sln% /t:build /p:VisualStudioVersion=14.1 /p:Platform=x64 /p:Configuration=Release /m ``` ``` SET FILENAME=%1 SET VERSION=%2 SET PACKAGE_FILES=%cd% cd .. SET bbd=%cd% ::最后一位 SET REBUILD=%3 if "%REBUILD%"=="" ( SET REBUILD="build" )else ( SET REBUILD="Rebuild" ) SET SLNFILE=%bbd%\%FILENAME%\build\xxx.sln SET MSBuild="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" ::-----------start build ... if not exist "%bbd%\%FILENAME%" ( echo "%bbd%\%FILENAME% is not exist!!" goto :eof ) echo "-----------start msbuild ..." if exist "%SLNFILE%" ( %MSBuild% %SLNFILE% /t:%REBUILD% /p:VisualStudioVersion=14.1 /p:Platform=x64 /p:Configuration=Release /m ) else ( echo "%SLNFILE% is not exist,start call build.bat ..." cd "%bbd%\%FILENAME%" call build.bat %MSBuild% %SLNFILE% /t:%REBUILD% /p:VisualStudioVersion=14.1 /p:Platform=x64 /p:Configuration=Release /m ) echo "-----------end msbuild ..." rem -----------end build ... :: -----------start move file ... cd "%PACKAGE_FILES%" call move_exe.bat %1 cd "%PACKAGE_FILES%" call move_map_pdb.bat %1 rem -----------end move file ... ::-----------start packge file ... cd "%PACKAGE_FILES%" call nsis.bat %2 rem -----------end packge file ... ``` #### nsis打包項目的命令語法: ``` $ makensis.exe xxx_new.nsi ``` 移動編譯好的文件到nsis的打包目錄 nsis.bat ``` SET PACKAGE_FILES=%cd% cd .. SET nsisdevC= %cd%\NSIS\makensis.exe SET FILENAME=xxx_new.nsi echo %nsisdevC% cd %PACKAGE_FILES% %nsisdevC% %PACKAGE_FILES%\%FILENAME% ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看