Skip to content

WindowsBase ref-assembly is missing some type forwards #1964

@airbreather

Description

@airbreather
  • .NET Core Version: 3.0.100
  • Windows version: Windows 10 v1809 (OS Build 17763.737)
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: No
  • Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? No

Problem description:

Cannot build when referencing very old WPF libraries that look for System.Collections.ObjectModel.ObservableCollection<T> in WindowsBase.dll

Actual behavior:
image

Expected behavior:

Builds fine.

Minimal repro:

  1. Unzip: SampleSolution.zip
  2. Load the solution in Visual Studio 2019 (tested on Enterprise 16.3.1)
  3. Try to build it.
  4. Note that changing SampleApp's TargetFramework to net472, it builds just fine.

My exploration:

Shot in the dark, browsing the MSIL of C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\3.0.0\ref\netcoreapp3.0\WindowsBase.dll, it's missing these forwards that are present in C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.0.0\WindowsBase.dll:

.class extern forwarder System.Collections.ObjectModel.ObservableCollection`1
{
	.assembly extern System.ObjectModel
}
.class extern forwarder System.Collections.ObjectModel.ReadOnlyObservableCollection`1
{
	.assembly extern System.ObjectModel
}
.class extern forwarder System.Collections.Specialized.INotifyCollectionChanged
{
	.assembly extern System.ObjectModel
}
.class extern forwarder System.Collections.Specialized.NotifyCollectionChangedAction
{
	.assembly extern System.ObjectModel
}
.class extern forwarder System.Collections.Specialized.NotifyCollectionChangedEventArgs
{
	.assembly extern System.ObjectModel
}
.class extern forwarder System.Collections.Specialized.NotifyCollectionChangedEventHandler
{
	.assembly extern System.ObjectModel
}

Metadata

Metadata

Assignees

Labels

BugProduct bug (most likely)rank20Rank: Priority/rank on a scale of (1..100)tenet-compatibilityIncompatibility with previous versions or with WPF for .NET Framework

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions