You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: src/Hosting/Hosting/src/Internal/WebHost.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -81,12 +81,12 @@ public WebHost(
81
81
// There's no way to to register multiple service types per definition. See https://github.com/aspnet/DependencyInjection/issues/360
82
82
#pragma warning disable CS8634// The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'class' constraint.
#pragma warning restore CS0618// Type or member is obsolete
91
91
#pragma warning restore CS8634// The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'class' constraint.
0 commit comments