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
{{ message }}
Repository navigation
Razor Pages are entirely missing from DLLs since 2.0.2-preview #2183
Since version 2.0.2-preview of this library, the compiled Razor Pages are entirely missing from the nuget package for .net6.0+ targets.
This also obviously prevents these pages from being routed to, since the endpoints for the razor pages also doesn't exist, the URL generated here does not know of a page identified by /Account/SignedOut.
Reproduction steps
Download Microsoft.Identity.Web.UI from nuget.org, any version from 2.0.2-preview onward
Open the nuget package with your tool of choice
Observe that Microsoft.Identity.Web.UI.Views.dll is not present in the nuget packages for net6.0 and net7.0 (but it is present for netcoreapp3.1)
Error message
No response
Id Web logs
No response
Relevant code snippets
Nocodeneeded-issueisreadilyapparently from the nuget package contents.Instantiate the ASP.NET Web App template from Visual Studio and selectMicrosoft Identity Platform as the authentication type. Then upgrade the Microsoft.Identity packages to the latest,remove the FallbackPolicy from Program.cs,and observe that https://localhost:7112/MicrosoftIdentity/Account/SignedOut returns a 404, while previous versions show a page with a message.
This is due to a breaking change between net5 and net6.
For now the workaround is to release a net5.0 target for Id.Web.UI, while we are working with the ASP.NET Core team to understand a possible fix
Activity
jennyf19 commentedon Apr 6, 2023
We need to look into this:
View components in ASP.NET Core | Microsoft Learn
Razor file compilation in ASP.NET Core | Microsoft Learn
Looks like there was a breaking change in the ASP.NET Core views between NET5 and 6. Thanks for opening the issue.
Possibly related to: #2095
yankarinRG commentedon Apr 11, 2023
This should be it.
jmprieur commentedon Apr 12, 2023
Thanks yankarinRG.
Indeed: https://learn.microsoft.com/en-us/dotnet/core/compatibility/aspnet-core/6.0/razor-compiler-doesnt-produce-views-assembly
jmprieur commentedon Apr 14, 2023
This is due to a breaking change between net5 and net6.
For now the workaround is to release a net5.0 target for Id.Web.UI, while we are working with the ASP.NET Core team to understand a possible fix
jennyf19 commentedon Apr 15, 2023
We've applied a workaround in 2.9.0 which should address the issue. The root cause is a breaking change in ASP.NET Core 6 with the Razor pages.