Problems with Git Submodules
I am working on a .NET Core project using Git for the version control. The .NET Core project consists of a main library and a common library (which is within a Git submodule). When attempting to build the common library I get an error "couldn't find 'project.json' in current directory". This is because, for some reason, TeamCity (I'm using v9.1.3) does not have the full submodule code, even thought the checkout submodule option is enabled in the VCS root.
Please sign in to leave a comment.
Hi Strudel,
if you move manually to the build agent's work folder, and checkout manually the git submodule, does the file get properly pulled into the directory? Do the rest of the files in the submodule (or some at least) get pulled correctly through TeamCity?