为什么 Visual Studio 2010 的解决方案资源管理器如此糟糕?神经兮兮?
当我尝试编译时出现以下错误:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFX.targets(269,9): 错误 MC6000:项目文件必须 包含 .NET Framework 程序集 'WindowsBase、PresentationCore、 演示框架'中 参考列表。
该项目是 Silverlight 业务应用程序的 Web 后端,几乎没有进行任何修改。当我添加这些引用时,一切都崩溃了。我尝试从引用中删除所有引用,直到只剩下对 System.out.println 的引用。但我仍然收到错误。事实上,这是唯一出现的错误。
编辑
搞清楚了,我有一个新问题:我不小心从我的 Silverlight 前端项目中移动(拖动)了一个 XAML 文件。 Visual Studio 非常挑剔,会突然拖拽一些东西。当我单击某个项目时,即使我立即释放鼠标,有时它也会跟随鼠标拖动该项目。有没有办法让它不那么紧张?
I am getting the following error on when I try to compile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFX.targets(269,9):
error MC6000: Project file must
include the .NET Framework assembly
'WindowsBase, PresentationCore,
PresentationFramework' in the
reference list.
This project is the Web backend for a Silverlight Business Application with very little modification. When I do add these references, everything breaks. I've tried removing every single reference from my references until all I had left was a reference to System. I still get the error though. In fact it is the only error that shows up.
Edit
Figured it out, and I have a new question: I accidentally moved (dragged) a XAML file from my Silverlight front-end project. Visual Studio is very finicky and will drag something at the drop of a hat. When I click an item, even if I release the mouse right away, sometimes it will drag the item following the mouse. Is there a way to make it less jumpy?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您从另一个项目复制或移动项目,则其“构建操作”属性可能会设置为“页面”。这发生在我身上,并将其更改为“资源”(因为这就是该项目)解决了问题。
我从另一个网站复制了这个答案。这是我面临的问题。
http://social. msdn.microsoft.com/Forums/en-US/msbuild/thread/7bf38ed6-43f8-492e-a304-0842e6c7c6b2/
If you copied or moved an item from another project, its "Build Action" property might be set to "Page". This happened to me, and changing it to "Resource" (because that's what the item was) fixed the problem.
I've copied this answer from another site. It was the problem I was facing.
http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/7bf38ed6-43f8-492e-a304-0842e6c7c6b2/