Blend “Window is not supported in a WPF Project”

前端 未结 4 2044
无人共我
无人共我 2021-02-19 01:59

I am having a frustrating time with Blend reporting \"Window is not supported in a Windows Presentation Foundation (WPF) project.\" due to unbuildable configurations but can\'t

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-19 02:46

    There are also a few other reasons this could happen:

    1) Missing references. Add a reference to PresentationCore, PresentationFramework, and WindowsBase

    It could also be looking for .dlls from the wrong platform. I just solved my problem by making the following change:

    In the .csproj file in question, change this line

    x86
    

    To

    AnyCPU
    

提交回复
热议问题