Skip to content

update interactive samples in string.format #2553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 7, 2019

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented Jun 5, 2019

contributes to #2539
Relies on dotnet/samples#953

When possible, update the snippets to work as included snippets.

Otherwise, turn off the interactive samples on those samples.

internal review link

contributes to dotnet#2539
Relies on dotnet/samples#953

When possible, update the snippets to work as included snippets.

Otherwise, turn off the interactive samples on those samples.
@BillWagner BillWagner added the 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) label Jun 5, 2019
@BillWagner
Copy link
Member Author

closing and reopening to start a new build

@BillWagner BillWagner closed this Jun 6, 2019
@BillWagner BillWagner reopened this Jun 6, 2019
@BillWagner BillWagner removed the 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) label Jun 6, 2019
BillWagner added a commit to BillWagner/samples that referenced this pull request Jun 6, 2019
A few samples weren't caught in the first PR.

contributes to dotnet/dotnet-api-docs#2553
@BillWagner
Copy link
Member Author

The latest build fixes are in dotnet/samples#957

@BillWagner BillWagner added the 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) label Jun 6, 2019
BillWagner added a commit to dotnet/samples that referenced this pull request Jun 6, 2019
A few samples weren't caught in the first PR.

contributes to dotnet/dotnet-api-docs#2553
@BillWagner BillWagner removed the 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) label Jun 6, 2019
@BillWagner
Copy link
Member Author

closing and reopening for a fresh build

@BillWagner BillWagner closed this Jun 6, 2019
@BillWagner BillWagner reopened this Jun 6, 2019
Copy link

@rpetrusha rpetrusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generally looks good, @BillWagner. Some comments:

  • The invariant culture is still used instead of the user's culture. I think I would consider making some of the examples that depend on the user's culture non-interactive. For example, the currency formatting example uses the currency symbol for the invariant culture, which is likely to be mystifying:
    image
    There are two examples that depend on culture-specific currency symbols. Potentially, this applies to some of the date/time output examples as well, though using the invariant culture for them is less jarring.
  • The example on line 5270 consistently times out.

@BillWagner
Copy link
Member Author

Thanks @rpetrusha

I fixed the sample on line 5270. (One closing bracket should have been included that was not.)

I disabled interactive on the currency examples. I left it on for the datetime ones though.

@BillWagner BillWagner merged commit 9f8b6a3 into dotnet:master Jun 7, 2019
@BillWagner BillWagner deleted the fix-interactive-samples branch June 7, 2019 00:27
@mairaw mairaw added this to the June 2019 milestone Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants