Skip to content
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

use coalesce instead of join #1882

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

askazakov
Copy link
Contributor

simplify template.json

@timcassell
Copy link
Collaborator

Templates were updated in #2338. Is this still relevant? Also, what does coalesce do? I'm not familiar with the templates. @askazakov cc @YegorStepanov

@askazakov
Copy link
Contributor Author

askazakov commented Jul 19, 2023

Templates were updated in #2338. Is this still relevant? Also, what does coalesce do? I'm not familiar with the templates. @askazakov cc @YegorStepanov

Yes, it is still relevant. It's nothing but refactoring. Try to do a little bit more clean code.

Docs for coalesce is here https://github.com/dotnet/templating/wiki/Available-Symbols-Generators#coalesce (in short coalesce behaves like the C# ?? operator)

pr logic is something like

  • framework either set via parameters or empty by default
  • frameworkDefault depends only on app type (console or not)
  • frameworkValue = framework ?? frameworkDefault (if framework is set then use it's value, otherwise use frameworkDefault accordingly app type)

@askazakov
Copy link
Contributor Author

@timcassell @YegorStepanov any updates?

@timcassell
Copy link
Collaborator

Yegor is currently busy, he should be available to review this soon.

@askazakov
Copy link
Contributor Author

@timcassell @YegorStepanov any updates?

@timcassell
Copy link
Collaborator

@AndreyAkinshin Perhaps you could give this a look if @YegorStepanov isn't around?

@AndreyAkinshin AndreyAkinshin requested review from AndreyAkinshin and removed request for YegorStepanov October 5, 2023 13:27
@AndreyAkinshin AndreyAkinshin merged commit 00628ab into dotnet:master Oct 5, 2023
6 checks passed
@AndreyAkinshin AndreyAkinshin added this to the v0.13.9 milestone Oct 5, 2023
@AndreyAkinshin
Copy link
Member

@askazakov thanks for the PR and sorry for such a late merge.

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