Skip to content

Razor Pages are entirely missing from DLLs since 2.0.2-preview #2183

@ascott18

Description

@ascott18

Microsoft.Identity.Web Library

Microsoft.Identity.Web.UI

Microsoft.Identity.Web version

2.7.0

Web app

Sign-in users

Web API

Not Applicable

Token cache serialization

Not Applicable

Description

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

  1. Download Microsoft.Identity.Web.UI from nuget.org, any version from 2.0.2-preview onward
  2. Open the nuget package with your tool of choice
  3. 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)

image

Error message

No response

Id Web logs

No response

Relevant code snippets

No code needed - issue is readily apparently from the nuget package contents.

Instantiate the ASP.NET Web App template from Visual Studio and select Microsoft 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.

Regression

2.0.0-beta, all 1.x versions

Expected behavior

The razor pages exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedregressionregression between Microsoft Identity Web versions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions