Skip to content

Commit dfcf734

Browse files
committed
Merge branch 'mm-runtime' into mm-cleanup-and-enable
* mm-runtime: Bump to dotnet/installer@330dee3 (dotnet#7334) [xaprepare] CGManifest.json conforms to JSON schema (dotnet#7342)
2 parents 73237a2 + b459e4a commit dfcf734

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

build-tools/xaprepare/xaprepare/Steps/Step_GenerateCGManifest.cs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ protected override async Task<bool> Execute (Context context)
6767
using var json = File.CreateText (jsonPath);
6868

6969
json.WriteLine ("{");
70-
json.WriteLine (" \"Registrations\": [");
70+
json.WriteLine (" \"$schema\": \"https://json.schemastore.org/component-detection-manifest.json\",");
71+
json.WriteLine (" \"version\": 1,");
72+
json.WriteLine (" \"registrations\": [");
7173

7274
var properties = new Dictionary<string, string> ();
7375

@@ -100,8 +102,8 @@ void WriteComponent (TextWriter json, CGManifestEntry entry, Dictionary<string,
100102
entry.FillComponentProperties (properties);
101103

102104
json.WriteLine ($" {{");
103-
json.WriteLine ($" \"Component\": {{");
104-
json.WriteLine ($" \"Type\": \"{entry.Type.ToLowerInvariant ()}\",");
105+
json.WriteLine ($" \"component\": {{");
106+
json.WriteLine ($" \"type\": \"{entry.Type.ToLowerInvariant ()}\",");
105107
json.WriteLine ($" \"{entry.Type}\": {{");
106108
bool firstProp = true;
107109
foreach (var key in properties.Keys.OrderBy (p => p, StringComparer.OrdinalIgnoreCase)) {
@@ -116,7 +118,7 @@ void WriteComponent (TextWriter json, CGManifestEntry entry, Dictionary<string,
116118
json.WriteLine ();
117119
json.WriteLine ($" }}");
118120
json.WriteLine ($" }},");
119-
json.WriteLine ($" \"DevelopmentDependency\":{dev}");
121+
json.WriteLine ($" \"developmentDependency\":{dev}");
120122
json.Write ($" }}");
121123
}
122124
}
@@ -145,7 +147,7 @@ public override string Name {
145147
}
146148
}
147149

148-
public override string Type => "Git";
150+
public override string Type => "git";
149151

150152
public string RepositoryUrl {get; private set;} = String.Empty;
151153
public string CommitHash {get; private set;} = String.Empty;
@@ -157,8 +159,8 @@ public override string Name {
157159

158160
public override void FillComponentProperties (Dictionary<string, string> properties)
159161
{
160-
properties ["RepositoryUrl"] = RepositoryUrl;
161-
properties ["CommitHash"] = CommitHash;
162+
properties ["repositoryUrl"] = RepositoryUrl;
163+
properties ["commitHash"] = CommitHash;
162164
}
163165

164166
const string Submodule = "submodule.external/";
@@ -256,7 +258,7 @@ sealed class MSBuildPackageReferenceInfo : CGManifestEntry {
256258
string name;
257259

258260
public override string Name => name;
259-
public override string Type => "Nuget";
261+
public override string Type => "nuget";
260262

261263
public string Version {get; private set;}
262264

@@ -268,8 +270,8 @@ sealed class MSBuildPackageReferenceInfo : CGManifestEntry {
268270

269271
public override void FillComponentProperties (Dictionary<string, string> properties)
270272
{
271-
properties ["Name"] = Name;
272-
properties ["Version"] = Version;
273+
properties ["name"] = Name;
274+
properties ["version"] = Version;
273275
}
274276

275277
static readonly XNamespace MSBuildXmlns = XNamespace.Get ("http://schemas.microsoft.com/developer/msbuild/2003");

eng/Version.Details.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Dependencies>
22
<ProductDependencies>
3-
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="7.0.100-rc.2.22426.5">
3+
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="7.0.100-rc.2.22454.1">
44
<Uri>https://github.com/dotnet/installer</Uri>
5-
<Sha>2d1a4de6b2da59647a9538bf9cc4e252847e6231</Sha>
5+
<Sha>330dee39e5e4dcf765f4c41c76b94c8e4497e91c</Sha>
66
</Dependency>
77
<Dependency Name="Microsoft.NET.ILLink.Tasks" Version="7.0.100-1.22423.4" CoherentParentDependency="Microsoft.Dotnet.Sdk.Internal">
88
<Uri>https://github.com/dotnet/linker</Uri>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<!--Package versions-->
33
<PropertyGroup>
4-
<MicrosoftDotnetSdkInternalPackageVersion>7.0.100-rc.2.22426.5</MicrosoftDotnetSdkInternalPackageVersion>
4+
<MicrosoftDotnetSdkInternalPackageVersion>7.0.100-rc.2.22454.1</MicrosoftDotnetSdkInternalPackageVersion>
55
<MicrosoftNETILLinkTasksPackageVersion>7.0.100-1.22423.4</MicrosoftNETILLinkTasksPackageVersion>
66
<MicrosoftNETCoreAppRefPackageVersion>7.0.0-rc.1.22422.12</MicrosoftNETCoreAppRefPackageVersion>
77
<MicrosoftDotNetApiCompatPackageVersion>7.0.0-beta.22103.1</MicrosoftDotNetApiCompatPackageVersion>

0 commit comments

Comments
 (0)