This repository is dedicated to code that will be shared between two or more subsystems. The shared code will be published as reusable components in the form of NuGet packages on nuget.org.
Artifacts should be organized in the following folder structure:
.
├── .github/
│ ├── actions/
│ ├── workflows/
│ └── CODEOWNERS
│
├── .vscode/
│
├───docs
│ └── development.md
│
├───source/
│ ├── <NuGet package bundle>
│ ├── Directory.Build.props
│ └── stylecop.json
│
├── .editorconfig
├── .gitignore
├── .licenserc.json
├── LICENSE
└── README.md
Actions and workflows spanning NuGet package bundles.
We should name workflows in a way that allows us to easily identify which package bundle they belongs to.
We use the following workflow postfix format:
*--bundle-publish.yml
for workflows that build and tests a package bundle.
Define the maintainers of this repository, one of which must approve any given pull request.
Contains VS Code workspace configuration which is relevant for any developer working in the repository. E.g. if we want to ensure all obey a certain setting we can configure it in settings.json
.
Contains notes and documentation stored in *.md
files.
Each NuGet package bundles should have one root folder within the source
folder. For organization within each package bundle, see Organization of packages.
Any configuration files (e.g. stylecop.json
) shared by all VS projects must be located in the source
folder.
VS project properties that we want to set on all VS projects must be defined in the Directory.Build.props
. Some NuGet package bundles have their own because we needed to migrate to another set of properties, which we didn't want to do for all at once.
Never put NuGet package dependencies (except the style cop analyzers dependency) in this file, keep them in each VS project.
The same usually goes for VS project properties that could cause breaking changes that we cannot easily detect, like TargetFramework
.
Contains:
.editorconfig
file for configuration of Formatting, Code Style and Analyzers (including StyleCop). Some NuGet package bundles have their own because we needed to migrate to another set of rules, which we didn't want to do for all at once..gitignore
file that defines which files should be ignored (not checked in) by Git..licenserc.json
file that defines the expected license header of certain file types.LICENSE
License information for all code within this repository.README.md
file that gives an introduction to this repository.
For details on package bundle organization and development see development.md.