简体   繁体   English

UWP Designer停止工作

[英]UWP Designer Stopped Working

So I have been working on this UWP project (visual studio 2017) for months and just recently the designer stopped working (it shows Loading desinger... You can continue working while the designer is loading in the background.) I have tried getting an earlier, working version of the project, but this did nothing to resolve the issue. 因此,我已经在这个UWP项目(Visual Studio 2017)上工作了几个月,而最近,设计师停止了工作(它显示正在加载desinger ...您可以在设计师在后台加载时继续工作。)较早的项目版本,但这并不能解决问题。 One thing that did help was I made a in place copy of the folder containing the solution/projects. 有帮助的一件事是,我将包含解决方案/项目的文件夹复制到了原位。 Opening this solution (with identical code) works as intended. 按预期方式打开此解决方案(使用相同的代码)。 So is there some temp files or something that is stopping the original version from working properly? 那么,是否有一些临时文件或某些阻止原始版本正常工作的文件? I guess a solution I could use is to just work off the new copied directory, but if another solution is available I'd rather use that since this may happen again. 我猜我可以使用的解决方案是仅处理新复制的目录,但是如果有其他解决方案可用,我宁愿使用它,因为这可能会再次发生。 Not sure why it happened in the first place honestly. 不知道为什么会首先发生。 Any information and/or help is greatly appreciated. 任何信息和/或帮助,我们将不胜感激。

If your app is targeting the Fall Creators Update (16299), then Visual Studio will use the new XAML Designer, which although usually being more precise with its presentation is still more buggy and I find it more often not working than working. 如果您的应用程序针对秋季创作者更新(16299),则Visual Studio将使用新的XAML设计器,尽管通常在其表示方式上更加精确,但仍然存在很多问题,而且我发现它经常无法正常工作。 But it is a work in progress and I am actually extremely happy it is being improved :-) . 但这是一项进展中的工作,实际上我非常高兴它正在改进:-)。

In any case, I think you can delete the temporary files and folders for the project like bin , obj , .suo , etc. and then Clean the solution and Rebuild all . 无论如何,我认为您可以删除项目的临时文件和文件夹,例如binobj.suo等,然后Clean the solutionRebuild all If the copy-paste approach works, I suspect there is a stuck temporary file that causes this. 如果复制粘贴方法可行,我怀疑存在导致此问题的临时文件卡住的情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM