更改 XAML 文件后 Visual Studio 挂起 [英] Visual Studio hangs after changes in a XAML file

查看:24
本文介绍了更改 XAML 文件后 Visual Studio 挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近遇到了一个奇怪的问题,它似乎是随机发生的.

I recently got into a strange problem, it seem to have happen randomly.

当我在 XAML 文件中进行更改(它可以是任何内容,更改按钮中的文本,更改背景颜色等)时,我的 Visual Studio 在启动程序时会挂起.

When I make changes inside a XAML-file (It can be anything, change text in a button, change color of background etc.) my visual studio hangs when starting my program.

有谁知道如何解决这个非常烦人的问题?

Does anyone know how to fix this really annoying problem?

推荐答案

我也在 MSDN 的论坛上发布了一个关于此的主题,我得到了一个解决方案:

I posted a thread about this on MSDN's forum too, and I got an answer which did the trick:

显然我必须删除项目解决方案文件,然后运行 ​​.csproj 文件.

Apparently I had to delete the Project Solution file and then run the .csproj file.

真的不知道为什么,但这使它再次起作用!因此,如果有人遇到此问题,请尝试上述解决方案.

Don't really know why but this made it work again! So if anyone has been experiencing this problem, try the solution above.

链接到 MSDN 上的答案

这篇关于更改 XAML 文件后 Visual Studio 挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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