在 DevExpress 模板库中,XAF 控制器没有出现

In DevExpress Template Gallery, XAF Controllers do not appear

在 DevExpress 模板库(版本 21.1)中,XAF 控制器不会出现。 我使用 .NET 5 和 Visual Studio 专业版 16.11.2

我该如何解决这个问题?

想用XAF Controller却没有。 (我在 *.win、*.Module.win*.Module 中测试过)

TimeReport.Win.csproj:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net5.0-windows</TargetFramework>
    <UseWindowsForms>true</UseWindowsForms>
    <ApplicationIcon>ExpressApp.ico</ApplicationIcon>
    <Deterministic>false</Deterministic>
    <AssemblyVersion>1.0.*</AssemblyVersion>
    <FileVersion>1.0.0.0</FileVersion>
  </PropertyGroup>
  <ItemGroup>
    <Compile Remove="Controllers\**" />
    <EmbeddedResource Remove="Controllers\**" />
    <None Remove="Controllers\**" />
    <Page Remove="Controllers\**" />
  </ItemGroup>
  <ItemGroup>
    <None Remove="Model.xafml" />
    <None Remove="Images\Logo.svg" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="Model.xafml">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="Images\Logo.svg" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="DevExpress.ExpressApp" Version="21.1.5" />
    <PackageReference Include="DevExpress.ExpressApp.Security.Xpo" Version="21.1.5" />
    <PackageReference Include="DevExpress.ExpressApp.Validation.Win" Version="21.1.5" />
    <PackageReference Include="DevExpress.ExpressApp.Win" Version="21.1.5" />
    <PackageReference Include="DevExpress.ExpressApp.Xpo" Version="21.1.5" />
    <PackageReference Include="DevExpress.Persistent.Base" Version="21.1.5" />
    <PackageReference Include="DevExpress.Persistent.BaseImpl" Version="21.1.5" />
    <PackageReference Include="DevExpress.RichEdit.Export" Version="21.1.5" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\TimeReport.Module.Win\TimeReport.Module.Win.csproj">
      <Private>True</Private>
    </ProjectReference>
    <ProjectReference Include="..\TimeReport.Module\TimeReport.Module.csproj">
      <Private>True</Private>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <None Update="appsettings.json">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
    <None Update="TimeReportORMDataModel.xpo.diagram">
      <AutoGen>True</AutoGen>
    </None>
  </ItemGroup>
</Project>

我已经 运行 解决了这个问题,发现这是 21.1.5 安装程序的一个已知问题。有可用的修补程序:

Core - XAF templates are not available in the Template Gallery for XAF Blazor projects