17 references to ArtifactVisibility
Microsoft.DotNet.Build.Tasks.Feed (5)
src\PushToBuildStorage.cs (5)
227
ArtifactVisibility
[] visibilitiesToPublish = GetVisibilitiesToPublish(ArtifactVisibilitiesToPublish);
334
private static
ArtifactVisibility
[] GetVisibilitiesToPublish(ITaskItem[] allowedVisibilities)
338
return [
ArtifactVisibility
.External];
341
return allowedVisibilities.Select(item => (
ArtifactVisibility
)Enum.Parse(typeof(
ArtifactVisibility
), item.ItemSpec)).ToArray();
Microsoft.DotNet.VersionTools (6)
BuildManifest\Model\BlobArtifactModel.cs (3)
46
public
ArtifactVisibility
Visibility
53
return
ArtifactVisibility
.External;
55
else if (Enum.TryParse(val, out
ArtifactVisibility
visibility))
BuildManifest\Model\PackageArtifactModel.cs (3)
58
public
ArtifactVisibility
Visibility
65
return
ArtifactVisibility
.External;
67
else if (Enum.TryParse(val, out
ArtifactVisibility
visibility))
Microsoft.DotNet.VersionTools.Tests (6)
BuildManifest\ManifestModelTests.cs (6)
207
Assert.Equal(visibility is "" ?
ArtifactVisibility
.External : (
ArtifactVisibility
)Enum.Parse(typeof(
ArtifactVisibility
), visibility), packageArtifact.Visibility);
313
Assert.Equal(visibility is "" ?
ArtifactVisibility
.External : (
ArtifactVisibility
)Enum.Parse(typeof(
ArtifactVisibility
), visibility), blobArtifact.Visibility);