Template containing common files and folder structure for creating new C# repositories.
-
To create a Git repository for a new C# project follow the steps below
# Clone the CSharp template repository and step into the new folder git clone https://github.com/CluedIn-io/CluedIn.CSharp.Template.git CluedIn.ProjectName cd CluedIn.ProjectName # Rename the Git remote to template git remote rename origin template
-
Rename the Visual Studio solution in the root folder
ren CluedIn.CSharp.Template.sln CluedIn.ProjectName.sln
-
Create the CluedIn.ProjectName repository under the CluedIn organization in GitHub
-
Set the new GitHub repository as the origin remote
git remote add origin https://github.com/CluedIn-io/CluedIn.ProjectName
-
Push the content to the new Git repository
git push
Substitute CluedIn.ProjectName for your project name.
To use this repository as a basis for migrating out an existing project from another repository use the instructions provided below.
-
Create a feature branch to perform the code migration in
git checkout feature/Migrate-CluedIn-Repository-Code
-
Copy across code from source repository
-
Convert projects to VS2017 format so that
dotnet
CLI can work with themgci . *.csproj -recurse | ForEach-Object { dotnet migrate-2017 migrate $_.FullName }
-
Remove backup files
gci . backup* -Directory -recurse | remove-item -recurse -force -verbose