I got an error with Git on building WebEd Cloud.

  • The error would be something like the image below :
Webed FAQ
  • Please copy Git folder from C:\Program Files\ to C:\Program Files (x86)\
  • Why did it happen? :
    • WebEd Cloud project has a pre-build event command line "C:\Program Files (x86)\Git\bin\git.exe" rev-parse --short HEAD> "$(ProjectDir)\App_Data\version.txt" to get the current revision on Git to write to WebEd.Web\App_Data\version.txt, so that we will have a version to display on WebEd Cloud Admin.
Webed FAQ
    • The process to read the version seems to not check where Git was installed, so it blindly picked "C:\Program Files (x86)\Git\bin\git.exe" to execute the command.
    • You must have installed a 64-bit version of Git on your 64-bit machine if you faced this problem. Your Git folder must be at "C:\Program Files\Git\bin\git.exe", so the command to get the current revision could not find git.exe and execute the command.
    • Please do a copy to "C:\Program Files (x86)" as a quick bandage.
    • You can also change the pre-build event command line but please be aware that you should not commit the change to the repository.
  • If you are still receiving the error but with a different error code, for error code 128 or error message "Not a git repository", please make sure have check-out the source code properly and completely, because the compiler could not find .git folder, which is for Git repository.