Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago Fernandez Madero <safern@microsoft.com>2017-12-23 10:45:05 +0300
committerGitHub <noreply@github.com>2017-12-23 10:45:05 +0300
commit6cb23ac20696ab314d2b28e95af40c8454bd7c0d (patch)
treef4a3cc6575886ed4a4b27ab038cb6daef81c25de /Documentation
parent1e897a4bad01ac45bba7af8a7c3396b0d17d8b1a (diff)
Ignore placeholder build configurations in build all configurations targets (#25831)
* Ignore negative build configurations in build all configurations targets * PR Feedback and add documentation * Remove placeholder buildconfigurations when expanding all configurations
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/coding-guidelines/project-guidelines.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/coding-guidelines/project-guidelines.md b/Documentation/coding-guidelines/project-guidelines.md
index c3aba1d2c0..446c015de4 100644
--- a/Documentation/coding-guidelines/project-guidelines.md
+++ b/Documentation/coding-guidelines/project-guidelines.md
@@ -88,6 +88,22 @@ All supported targets with unique windows/unix build for netcoreapp:
<PropertyGroup>
```
+### Placeholder build configurations
+Placeholder build configurations can be added to the `<BuildConfigurations>` property to indicate the build system that the specific project is inbox in that framework and that build configuration needs to be ignored.
+
+Placeholder build configurations start with _ prefix.
+
+Example:
+When we have a project that has a `netstandard` build configuration that means that this project is compatible with any build configuration. So if we do a vertical build for `netfx` this project will be built as part of the vertical because `netfx` is compatible with `netstandard`. This means that in the runtime and testhost binaries the netstandard implementation will be included, and we will test against those assets instead of testing against the framework inbox asset. In order to tell the build system to not include this project as part of the `netfx` vertical we need to add a placeholder configuration:
+```
+<PropertyGroup>
+ <BuildConfigurations>
+ netstandard;
+ _netfx;
+ </BuildConfigurations>
+</PropertyGroup>
+```
+
## Options for building
A full or individual project build is centered around BuildConfiguration and will be setup in one of the following ways: