It fails on this line because the .version file that's created only has one line in it. It doesn't contain the repo commit but does have the version. The MSBuild property that's used to input the repo commit is $(RepositoryCommit). Looking at the binlog shows that this property is not set for the package-source-build project. This is a regression because I see that it was set in the stage 2 build in the past.