Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Aspire.Cli/Packaging/NuGetConfigPrompter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ public async Task PromptToCreateOrUpdateAsync(DirectoryInfo targetDirectory, Pac
else if (hasMissingSources)
{
var updateChoice = await _interactionService.PromptForSelectionAsync(
"Update NuGet.config to add missing package sources for the selected channel?",
TemplatingStrings.UpdateNuGetConfigConfirmation,
[TemplatingStrings.Yes, TemplatingStrings.No],
c => c,
cancellationToken);

if (string.Equals(updateChoice, TemplatingStrings.Yes, StringComparisons.CliInputOrOutput))
{
await NuGetConfigMerger.CreateOrUpdateAsync(targetDirectory, channel, cancellationToken: cancellationToken);
_interactionService.DisplayMessage(KnownEmojis.Package, "Updated NuGet.config with required package sources.");
_interactionService.DisplayMessage(KnownEmojis.Package, TemplatingStrings.NuGetConfigUpdatedConfirmationMessage);
}
}
}
Expand Down Expand Up @@ -100,6 +100,6 @@ public async Task CreateOrUpdateWithoutPromptAsync(DirectoryInfo targetDirectory
}

await NuGetConfigMerger.CreateOrUpdateAsync(targetDirectory, channel, cancellationToken: cancellationToken);
_interactionService.DisplayMessage(KnownEmojis.Package, "Created or updated NuGet.config in the project directory with required package sources.");
_interactionService.DisplayMessage(KnownEmojis.Package, TemplatingStrings.NuGetConfigCreatedOrUpdatedConfirmationMessage);
}
}
27 changes: 27 additions & 0 deletions src/Aspire.Cli/Resources/TemplatingStrings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/Aspire.Cli/Resources/TemplatingStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@
<data name="NuGetConfigCreatedConfirmationMessage" xml:space="preserve">
<value>Created NuGet.config for the selected package channel.</value>
</data>
<data name="UpdateNuGetConfigConfirmation" xml:space="preserve">
<value>Update NuGet.config to add missing package sources for the selected channel?</value>
</data>
<data name="NuGetConfigUpdatedConfirmationMessage" xml:space="preserve">
<value>Updated NuGet.config with required package sources.</value>
</data>
<data name="NuGetConfigCreatedOrUpdatedConfirmationMessage" xml:space="preserve">
<value>Created or updated NuGet.config in the project directory with required package sources.</value>
</data>
<data name="UseLocalhostTld_Prompt" xml:space="preserve">
<value>Use *.dev.localhost URLs</value>
</data>
Expand Down
15 changes: 15 additions & 0 deletions src/Aspire.Cli/Resources/xlf/TemplatingStrings.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/Aspire.Cli/Resources/xlf/TemplatingStrings.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/Aspire.Cli/Resources/xlf/TemplatingStrings.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/Aspire.Cli/Resources/xlf/TemplatingStrings.fr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/Aspire.Cli/Resources/xlf/TemplatingStrings.it.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/Aspire.Cli/Resources/xlf/TemplatingStrings.ja.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/Aspire.Cli/Resources/xlf/TemplatingStrings.ko.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions src/Aspire.Cli/Resources/xlf/TemplatingStrings.pl.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading