dotnet / razor

Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
https://asp.net
MIT License
505 stars 196 forks source link

.NET CORE 3.1 Razor Page Bug #4627

Open IrakliLomidze opened 4 years ago

IrakliLomidze commented 4 years ago

in .NET 2.2 Code working fine

   @if (Model.HasPreviousPage == true)
                        {
                            <li class="page-item">
                                <a class="page-link"
                                   asp-action="Index3"
                                   @*asp-route-sortOrder="ByNameAsc" *@
                                   asp-route-searchKey="@ViewData["SearchByKey"]"
                                     asp-route-page=1>
                                   First
                                </a>
                            </li>
                        }

But in .NET 3.1 @* is an incorrect syntax, code is not compiling.

mkArtakMSFT commented 4 years ago

Thanks for contacting us. @NTaylorMullen can you please look into this? Thanks!

NTaylorMullen commented 4 years ago

Oh wow look at that. Turns out in 3.1 we broke the ability to have Razor comments in TagHelpers. This is a regression that we weren't aware of.

ghost commented 4 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

NTaylorMullen commented 3 years ago

@allisonchou compiler ❤️