0 votes
ago by (220 points)

An unexpected build error was observed when an existing app (targeting .NET 11) upgraded Rebex packages from 8.0.9797 to 8.0.9820.

Steps to reproduce

Create repro.csproj with the following content:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net11.0-windows</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Rebex.Terminal.Control" Version="8.0.9820" />
  </ItemGroup>
</Project>

Create Program.cs next to repro.csproj with the following content:

using Rebex.TerminalEmulation;
ITerminal _ = new TerminalControl();

Using .NET SDK 11.0.100, run dotnet build:

repro net11.0-windows failed with 2 error(s)
C:\repro\Program.cs(2,15): error CS7069: Reference to type 'afadl' claims it is defined in 'Rebex.Terminal', but it could not be found
C:\repro\Program.cs(2,15): error CS7069: Reference to type 'uhqmz' claims it is defined in 'Rebex.Terminal', but it could not be found

Downgrading Rebex.Terminal.Control package in repro.csproj to the previous version 8.0.9797 makes the project build as expected. Is this a regression in the latest version?

Please log in or register to answer this question.

...