Avoid null ref in TagHelperMatchingConvention when attribute name is null. (#38264) (#38271)
As part of .NET 6, we made some tweaks to the razor parser to avoid string allocations. This change results in a null-ref for bound properties without public setters. The parser change affects building apps going back all the way to .NET 2.1, so we'd like to fix this. Fixes https://github.com/dotnet/aspnetcore/issues/38194
显示
- src/Razor/Microsoft.AspNetCore.Razor.Language/src/StringSegment.cs 2 个添加, 14 个删除.../Microsoft.AspNetCore.Razor.Language/src/StringSegment.cs
- src/Razor/Microsoft.AspNetCore.Razor.Language/test/StringSegmentTest.cs 42 个添加, 0 个删除...osoft.AspNetCore.Razor.Language/test/StringSegmentTest.cs
- src/Razor/Microsoft.AspNetCore.Razor.Language/test/TagHelperMatchingConventionsTest.cs 36 个添加, 1 个删除...e.Razor.Language/test/TagHelperMatchingConventionsTest.cs
加载中
想要评论请 注册 或 登录