This is a test for maintaining sample code in a large repository and copying into smaller targeted sample code repositories.
MultipleSolutionsTest is a large repository containing .Net Web and Windows solutions and a shared class library project. A script copies the appropriate folders and files into smaller repositories named MultipleSolutionsTest_Web and MultipleSolutionsTest_Windows.
In a cmd window clone the following repos into the same parent folder:
cd c:\temp\myrepos
git clone https://github.com/tracktownsoftware/MultipleSolutionsTest
git clone https://github.com/tracktownsoftware/MultipleSolutionsTest_Windows
git clone https://github.com/tracktownsoftware/MultipleSolutionsTest_Web
The workflow:
- Use VisualStudio or VSCode to make changes in the local repository for MultipleSolutionsTest (example: change the SayHelloWorld string returned in the HelloWorld class in SharedClassLibrary1).
- In Windows Explorer double-click MultipleSolutionsTest\CopyToSmallRepos\copyToSmallRepos.bat to copy your changes to the smaller repos MultipleSolutionsTest_Web and MultipleSolutionsTest_Windows.
- Test solutions and projects in MultipleSolutionsTest_Web and MultipleSolutionsTest_Windows.
- Commit and push changes in MultipleSolutionsTest_Web and MultipleSolutionsTest_Windows to Github.