sdk
sdk copied to clipboard
Improve the example with specified language when language option is given with invalid option
Problem
- https://github.com/dotnet/templating/issues/4494
- When valid bool option and invalid option are given, the exception unable to cast is thrown .
- Cli lacks unit tests for the option with invalid names.
Solution
- Specified language is added to the example when language option is given together with invalid option.
- Handle bool option in TemplateOptionResult for handling no template found
- Expand Cli unit tests.
Checks:
- [x] Added unit tests
- [ ] Added
#nullable enableto all the modified files ?
Agreed to retarget to 7.0.2xx.
Retargeted to 7.0.2xx
@JanKrivanek I accidently removed you from reviewers. Please take a look if you have time.