green-night-26978
06/13/2025, 1:34 PMvar addNugetSourceCommand = new Command("addNugetSourceCommand", new CommandArgs
{
Create = "dotnet nuget add source --name github \"$GITHUB_NUGET_SOURCE\" --username \"$GITHUB_USER\" --password \"$GITHUB_TOKEN\" --store-password-in-clear-text",
Environment =
{
{ "GITHUB_NUGET_SOURCE", "{REGISTRY_URL}" },
{ "GITHUB_USER", "USERNAME" },
{ "GITHUB_TOKEN", "token" }
}
});
var dotnetBuildCommand = new Command("dotnetBuildCommand", new CommandArgs
{
Create = "dotnet build",
}, new CustomResourceOptions
{
DependsOn = new[] { addNugetSourceCommand }
});echoing-dinner-19531
06/13/2025, 2:36 PMgreen-night-26978
06/13/2025, 2:37 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by