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

Fix templates sourceName & port of template fixes from main (#41536)

* Fix templates sourceName
* Support minimal APIs & program/main together in Web API template

  - Updated test cases to cover more options combinations
  - Fixed route pattern typo in minimal APIs case
  - Added missing UseAuthorization call in minimal APIs + Windows Auth case
  - Fail template tests if a compiler warning is output on build or publish
  - Fix Web API template when call graph option is true
  - Add arg constants & fix formatting

Fixes #41491

* Clean-up from template fix port

  - Update template scripts to use correct package version when using locally
  - Update template-baselines.json to cover new template options

* Update for VS compiler changes to nullability & u8 string literals

* Template baselines test fix

* Make template baseline test check namespaces match project name

* Comment for clarity

* Port extra template tests from main

* Port template test change that fails if warnings present on build or publish

* Use original file name in template baseline test

* Fix single file exe test

Now that we fail if "warning" appears in the command output, we have to be sure to now issue and dotnet CLI commands that result in SDK warnings (in this case the change in net6.0 that -r must be accompanied with --self-contained or --no-self-contained).

* Comment out tenmplate baseline test namespace declaration

* Comment out template warning checks

* Apply test fixes from failures investigation

* Set project name

* Bump Helix test runner timeout to 60 mins

* Collect test host dumps on Helix test runner crashes

* Print message when test job times out

Bump helix timeout to match main (45 mins)

* Make helix runner print timestamps with console logs

* Ported more test changes from main

* Revert failing project test if new/build/publish emit restore errors or other warnings.

* Fix typos

* Port TestRunner.cs changes
上级 fac970de
No related branches found
No related tags found
无相关合并请求
显示
340 个添加251 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册