CommunityToolkit/WindowsCommunityToolkit

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

Open

#3,339 建立於 2020年6月10日

在 GitHub 查看
 (8 留言) (1 反應) (0 負責人)C# (1,403 fork)batch import
bug :bug:build :fire:help wanted

倉庫指標

Star
 (5,708 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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"
  },

貢獻者指南