Skip to content
代码片段 群组 项目
未验证 提交 fb14e615 编辑于 作者: Damian Edwards's avatar Damian Edwards 提交者: GitHub
浏览文件

Add minimal option to webapi template (#36068)

* Add minimal option to webapi template

- Add "minimal" option to webapi project template
- Factor Program.cs into multiple files and update template manifest to exclude/rename dependent on selected options
- Updated controller and minimal versions to set endpoint/route name when EnableOpenAPI is true
- Configure webapi template minimal option for VS display as "Use controllers"

* Update template baselines & fix casing of option description

* Fix template baseline tests issue

* Update template baseline test to be more resilient

Made the template baseline test more resilient by ensuring that all template arg options without values are added to the project key rather than a specific few. Args that have a value are still not added to the key. Keys are all tracked now to ensure uniqueness & an exception is thrown if they aren't. Renamed a few things for better clarity and easy of debugging too.

* Make template baseline test project key disregard ordering

* Update based on feedback

- Change WeatherForecast to a record
- Simplify method in test
上级 e58a6c24
No related branches found
No related tags found
无相关合并请求
显示
380 个添加38 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册