MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

resource could not be resolved in WPF in VS2019

Open WeixiangZhang opened this issue 5 years ago • 5 comments

Version: MaterialDesignTheme 3.2 via Nuget VS2019: v16.8.2

I setup project following Getting Started. But the resources could not be resolved in designer, but it‘s ok when running.

And use VS2015 to open this VS2019 solution, the resources can be resolved in designer.

How to fix this? Thanks.

error

app

WeixiangZhang avatar Dec 03 '20 07:12 WeixiangZhang

Hello,

same issue here.

SandnerSoft avatar Dec 05 '20 16:12 SandnerSoft

A few follow up questions.

  1. MaterialDesignIconButton is an optional style, so you will need to explicitly reference the Buttons resource dictionary (example here). For more information on this see this wiki page.
  2. What version of Visual Studio are you using? You can find this from the Help >> About Microsoft Visual Studio menu at the top.
  3. What version of .NET is your app targeting (.NET Framework, .NET Core 3.1, .NET 5)?

Keboo avatar Dec 07 '20 03:12 Keboo

@Keboo I followed Quick Start to setup. 1

VS2019 info: 2

Net framework info: 3

WeixiangZhang avatar Dec 07 '20 03:12 WeixiangZhang

@Keboo In my tests, this issue is caused by x64 platform.

In VS2019, set platform to x64 will cause this issue and even set back to Any CPU or x86, it will not recover. Clean and rebuild resolution will not work. 4

But in VS2015, set back to Any CPU, it works and resources could be resolved.

So when use VS2019, I must be very careful not to set platform to x64......

WeixiangZhang avatar Dec 07 '20 03:12 WeixiangZhang

Is the issue solved ?

ElieTaillard avatar Jun 03 '22 16:06 ElieTaillard