![]() ![]() TFS Build's references to the submodules have a habit of becoming corrupted resulting in builds that stop working without warning until whichever submodule is at fault is completely removed and re-added - not a fun process. Support in on-prem TFS 2015 can be a bit buggy, however. Visual Studio Team Services (TFS Online) and On Prem-TFS (since TFS2015) both now have a good understanding of how submodules work and can now do CI Builds that incorporate submodules right out of the box. Much has changed at Microsoft in relation to Git in the last few years. We have made extensive use of nuget packages for this purpose, as well, but have generally had better success and a much better design/debug experience with submodules. This is helpful since many of our projects can be very large in size and share many of the same chunks of code. We then add each one of those projects as a submodule to any Solution that needs them. We have found that the easiest way for us to do this is to move each of our shared units of code into their own Visual Studio Project and put each shared Visual Studio project in its own repo. If I'm in one of the non-shared solutions and make a change to something in the submodule, how do I commit and push it back to the shared solution's repo ( SolutionShared) so that it's available to all solutions that reference it? How do I make changes to the shared code from within the non-shared projects Do I simply add its two child projects ( Project1Shared and Project2Shared) in Visual Studio?ΔΆ. My two solutions now have a SolutionShared directory. ![]() ![]() I then used TortoiseGit (as I couldn't figure out how to do it Visual Studio) to add that shared repo as a git submodule to Solution1 and Solution2. What I did was to create a new solution SolutionShared, add all my shared code there, and add it to its own git repo. Most examples use the command line, but I want to do it using Visual Studio 2013 (and/or TortoiseGit)? - SolutionShared I have some shared code I want to share among a number of solutions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |