Skip to content

Current WCT solution does not build when .NET 5 preview is installed #3339

Open
@jeromelaban

Description

@jeromelaban

Describe the bug

When building the Microsoft.Toolkit.Services project, the WPFPopup XAML page for the net462 target is not getting its .i.g.cs content generated properly, causing missing members compilation errors.

Steps to Reproduce

Install .NET 5.0.100-preview.6.20277.5, build the solution.

Additional context

This looks like a .NET 5 issue, where the MarkupCompilePass1 does not seem to be executed at all, even though Page ItemGroup items are present.

As a workaround, adding this to the global.json file works around the issue:

  "sdk": {
    "version": "3.1.201",
    "rollForward": "latestPatch"
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛An unexpected issue that highlights incorrect behaviorbuild 🔥help wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions