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
显示
- eng/helix/content/RunTests/ProcessUtil.cs 6 个添加, 2 个删除eng/helix/content/RunTests/ProcessUtil.cs
- eng/helix/content/RunTests/Program.cs 5 个添加, 5 个删除eng/helix/content/RunTests/Program.cs
- eng/helix/content/RunTests/TestRunner.cs 62 个添加, 52 个删除eng/helix/content/RunTests/TestRunner.cs
- eng/targets/Helix.props 1 个添加, 2 个删除eng/targets/Helix.props
- src/Hosting/Hosting/src/Internal/WebHost.cs 3 个添加, 3 个删除src/Hosting/Hosting/src/Internal/WebHost.cs
- src/ProjectTemplates/BlazorTemplates.Tests/BlazorTemplateTest.cs 1 个添加, 1 个删除...jectTemplates/BlazorTemplates.Tests/BlazorTemplateTest.cs
- src/ProjectTemplates/Shared/ProcessResult.cs 1 个添加, 1 个删除src/ProjectTemplates/Shared/ProcessResult.cs
- src/ProjectTemplates/Shared/Project.cs 35 个添加, 82 个删除src/ProjectTemplates/Shared/Project.cs
- src/ProjectTemplates/Shared/ProjectFactoryFixture.cs 38 个添加, 15 个删除src/ProjectTemplates/Shared/ProjectFactoryFixture.cs
- src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/Program.Main.cs 1 个添加, 1 个删除...tTemplates/content/BlazorServerWeb-CSharp/Program.Main.cs
- src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Client/Program.Main.cs 5 个添加, 1 个删除...ntent/ComponentsWebAssembly-CSharp/Client/Program.Main.cs
- src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Server/Program.Main.cs 1 个添加, 1 个删除...ntent/ComponentsWebAssembly-CSharp/Server/Program.Main.cs
- src/ProjectTemplates/Web.ProjectTemplates/content/GrpcService-CSharp/Program.Main.cs 1 个添加, 1 个删除...ojectTemplates/content/GrpcService-CSharp/Program.Main.cs
- src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/template.json 12 个添加, 6 个删除...ates/content/WebApi-CSharp/.template.config/template.json
- src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/Program.Main.cs 158 个添加, 65 个删除...eb.ProjectTemplates/content/WebApi-CSharp/Program.Main.cs
- src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/Program.MinimalAPIs.OrgOrIndividualB2CAuth.cs 6 个添加, 8 个删除...bApi-CSharp/Program.MinimalAPIs.OrgOrIndividualB2CAuth.cs
- src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/Program.MinimalAPIs.WindowsOrNoAuth.cs 1 个添加, 0 个删除...tent/WebApi-CSharp/Program.MinimalAPIs.WindowsOrNoAuth.cs
- src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.Main.cs 1 个添加, 3 个删除...eb.ProjectTemplates/content/Worker-CSharp/Program.Main.cs
- src/ProjectTemplates/scripts/Run-Angular-Locally.ps1 1 个添加, 1 个删除src/ProjectTemplates/scripts/Run-Angular-Locally.ps1
- src/ProjectTemplates/scripts/Run-AngularProgramMain-Locally.ps1 1 个添加, 1 个删除...ojectTemplates/scripts/Run-AngularProgramMain-Locally.ps1
加载中
想要评论请 注册 或 登录