Building Ninject / Ninject Extensions Without Git

We received the following question about building Ninject:

I’ve downloaded the source files for both context extensions and namedscopes (Ninject) and have followed the instructions in "how to build.txt" exactly, but I cannot get either NAnt script to build. I keep getting an error from git saying
"get-git-revision:
[exec] fatal: Not a git repository (or any of the parent directories): .git
BUILD FAILED – 0 non-fatal error(s), 1 warning(s)"
what gives? what do I not know to do?
Thank you for taking a moment to educate me. I have googled far and wide and can’t seem to find any help with this error. Note: I’ve never used git, I don’t have a git repository, I don’t have a github account. What dependency do I need to get started?

Ninject build files assume that you are running them inside of a Git repository. The need the Git repository to determine the version to be used for the built assemblies.

There are three solutions to this problem:

  1. Install Git, clone the repository and then run the build script
  2. Change the build script so that a hard-coded version is used by removing the Git related parts and defining the version directly
  3. Build within Visual Studio

About the author

Urs Enzler

Add comment

By Urs Enzler

Recent Posts