1 write to Identity
Microsoft.DotNet.VersionTools (1)
src\BuildManifest\Model\BuildModel.cs (1)
17
Identity
= identity;
27 references to Identity
Microsoft.DotNet.Build.Tasks.Feed (8)
src\PublishArtifactsInManifest.cs (4)
321
if (buildModel.
Identity
.PublishingVersion == PublishingInfraVersion.UnsupportedV1 ||
322
buildModel.
Identity
.PublishingVersion == PublishingInfraVersion.UnsupportedV2)
327
else if (buildModel.
Identity
.PublishingVersion == PublishingInfraVersion.Latest)
333
Log.LogError($"The manifest version '{buildModel.
Identity
.PublishingVersion}' is not recognized by the publishing task.");
src\PublishArtifactsInManifestBase.cs (1)
375
if (BuildModel.
Identity
.IsReleaseOnlyPackageVersion || SkipSafetyChecks)
src\PublishArtifactsInManifestV3.cs (3)
148
isStableBuild: BuildModel.
Identity
.IsStable,
149
repositoryName: BuildModel.
Identity
.Name,
150
commitSha: BuildModel.
Identity
.Commit,
Microsoft.DotNet.Build.Tasks.Feed.Tests (16)
BuildModelFactoryTests.cs (16)
172
model.
Identity
.Attributes.Should().Contain("AzureDevOpsRepository", _normalizedTestAzdoRepoUri);
298
model.
Identity
.Attributes.Should().Contain(attributeName, _normalizedTestInitialLocation);
420
modelFromItems.
Identity
.Name,
421
modelFromItems.
Identity
.BuildId,
422
modelFromItems.
Identity
.Branch,
423
modelFromItems.
Identity
.Commit,
424
modelFromItems.
Identity
.Attributes.Select(kv => $"{kv.Key}={kv.Value}").ToArray(),
425
modelFromItems.
Identity
.IsStable,
426
modelFromItems.
Identity
.PublishingVersion,
427
modelFromItems.
Identity
.IsReleaseOnlyPackageVersion,
437
modelFromItems.
Identity
.Name.Should().Be(_testAzdoRepoUri);
438
modelFromItems.
Identity
.BuildId.Should().Be(_testAzdoBuildId);
439
modelFromItems.
Identity
.Commit.Should().Be(_testBuildCommit);
440
modelFromItems.
Identity
.PublishingVersion.Should().Be(VersionTools.BuildManifest.Model.PublishingInfraVersion.Latest);
441
modelFromItems.
Identity
.IsReleaseOnlyPackageVersion.Should().BeFalse();
442
modelFromItems.
Identity
.IsStable.Should().BeTrue();
Microsoft.DotNet.VersionTools (3)
src\BuildManifest\Model\BuildModel.cs (2)
26
public override string ToString() => $"Build {
Identity
}";
30
Identity
.ToXmlAttributes(),
src\BuildManifest\Model\OrchestratedBuildModel.cs (1)
39
Builds.Add(build.
Identity
);