Error: Unable to load file or assembly 'Microsoft.Windows.Design.Host,

Hi, Error when opening projects with net core 6 and Microsoft Visual Studio Community 2022 (64 bits) libraries - Preview Version 17.7.0 Preview 1.0

I can’t find any ref on this dll in the sources.

Any idea?

Hi,

After installing Microsoft Visual Studio Community 2022 (64 bits) - Current
Version 17.6.0, projects open and compile “normally” but remain “unloaded” under version 17.7.0 preview.

Microsoft had to remove more accessible DLLs in 17.7

Do you reference Microsoft.Windows.Design.Host directly/explicitly?

Does every project fail on 17.7.0 (ickluding non-.NET ones), or only a specific one(s)?

thanx,
marc

Do you reference Microsoft.Windows.Design.Host directly/explicitly?
no never :slight_smile:

Does every project fail on 17.7.0 (ickluding non-.NET ones), or only a specific one(s)?

net 4.8 projects are running correctly.
only the Net Core libraries generate this error under VS preview 17.7.0 ( 17.6.0 is ok).
Under Water no problem with the same libraries.

1 Like

Thanx for the follow-up. Initial investigation has shown that this seems to be a deliberate breaking API change on Microsoft’s side, for the next version of VS. That .dll has APIs we need/use for the WPF designer, but it has been removed by MS.

We’ll investigate what to do, and hope we can have a fix before this version leaves preview status. Thanx for making us aware of this change early on! :pray:t3:

—marc

1 Like

Problem solved :slight_smile:

Has this bug already been fixed?

To the best of my knowledge this has been fixed weeks ago, yes, if not months…

1 Like

Nice, we don’t use to update all packages so often.

Regards.

1 Like