(ASP.NET)项目文件必须包含“ WindowsBase,PresentationCore,PresentationFramework” [英] (ASP.NET) Project file must include 'WindowsBase, PresentationCore, PresentationFramework'

查看:149
本文介绍了(ASP.NET)项目文件必须包含“ WindowsBase,PresentationCore,PresentationFramework”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的ASP.NET应用程序中看到一个难以理解的编译错误。

I'm seeing an inscrutable compile error in my ASP.NET application.


项目文件必须包含.NET Framework程序集'参考列表中的WindowsBase,PresentationCore,PresentationFramework

Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list

这是WPF程序集。我的项目是ASP.NET。

That's the WPF assembly. My project is ASP.NET. Has anyone ever encountered this before?

甚至陌生的人,由于另一个问题,在我开始弄乱.resx文件之前,该项目还在编译中。然后突然出现了这个荒谬的错误。

Even stranger, the project was compiling before I started messing around with my .resx files due to a different issue. Then suddenly this nonsensical error appeared.

推荐答案

如果项目中的文件的构建操作设置为<$,就会发生这种情况。 c $ c>资源。 (用于WPF嵌入)

This happens if you have a file in your project with its Build Action set to Resource. (which is used for WPF embedding)

找到有问题的文件并更改其生成操作。

Find the offending file and change its Build Action.

这篇关于(ASP.NET)项目文件必须包含“ WindowsBase,PresentationCore,PresentationFramework”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆