diff options
author | Greg Munn <greg@sgmunn.com> | 2018-07-09 22:52:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 22:52:01 +0300 |
commit | 22cdc5b66a97e40229b5895483bf665040a537f2 (patch) | |
tree | 576fb1aef6ec5f6666f1548408bd60fb5b4c4f2d | |
parent | e86eca8bf1b8c935a718454704c7740749a9042a (diff) | |
parent | 4c2eebede48ecec4e670be563a351a5567faecd1 (diff) |
Merge pull request #5253 from mono/jstedfast-firstbuild-telemetry-7.6
[Core] Include project capabilities in the FirstBuild telemetry
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs | 4 | ||||
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs index e01c7b034b..51bc5029c5 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs @@ -1382,6 +1382,10 @@ namespace MonoDevelop.Projects metadata.ProjectType = TypeGuid; metadata.ProjectFlavor = FlavorGuids.FirstOrDefault () ?? TypeGuid; + var capabilities = GetProjectCapabilities (); + if (capabilities.Any ()) + metadata.Capabilities = string.Join (" ", capabilities); + var c = GetConfiguration (configuration); if (c != null) { metadata.Configuration = c.Id; diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs index bb4b9ebfbf..23801eb582 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs @@ -1866,6 +1866,11 @@ namespace MonoDevelop.Projects set => SetProperty (value); } + public string Capabilities { + get => GetProperty<string> (); + set => SetProperty (value); + } + public string Configuration { get => GetProperty<string> (); set => SetProperty (value); |