diff --git a/tools/build.cmd b/tools/build.cmd
index 5b233dfc0e..006b3ddb22 100644
--- a/tools/build.cmd
+++ b/tools/build.cmd
@@ -18,7 +18,6 @@ REM You should have received a copy of the GNU General Public License
REM along with this program. If not, see .
REM This script builds KS and packs the artifacts. Use when you have VS installed.
-for /f "tokens=* USEBACKQ" %%f in (`type version`) do set ksversion=%%f
set releaseconfig=%1
if "%releaseconfig%" == "" set releaseconfig=Release
diff --git a/tools/build.sh b/tools/build.sh
index be12e16c10..a898ac9f1c 100755
--- a/tools/build.sh
+++ b/tools/build.sh
@@ -18,7 +18,6 @@
# along with this program. If not, see .
# This script builds KS. Use when you have dotnet installed.
-ksversion=$(cat version)
ksreleaseconf=$1
if [ -z $ksreleaseconf ]; then
ksreleaseconf=Release
diff --git a/tools/docgen.cmd b/tools/docgen.cmd
index 8830fe3a2c..8d7c7133bb 100644
--- a/tools/docgen.cmd
+++ b/tools/docgen.cmd
@@ -18,8 +18,6 @@ REM You should have received a copy of the GNU General Public License
REM along with this program. If not, see .
REM This script builds the documentation and packs the artifacts. Use when you have VS installed.
-for /f "tokens=* USEBACKQ" %%f in (`type version`) do set ksversion=%%f
-
echo Finding DocFX...
if exist %USERPROFILE%\.dotnet\tools\docfx.exe goto :build
echo You don't have DocFX installed. Download and install .NET and DocFX.
diff --git a/tools/docgen.sh b/tools/docgen.sh
index c9f911a684..7864eee210 100755
--- a/tools/docgen.sh
+++ b/tools/docgen.sh
@@ -18,8 +18,6 @@
# along with this program. If not, see .
# This script builds KS and packs the artifacts. Use when you have MSBuild installed.
-ksversion=$(cat version)
-
# Check for dependencies
msbuildpath=`which docfx`
if [ ! $? == 0 ]; then