简体   繁体   English

C#UWP Designer空白-没有框架显示

[英]C# UWP Designer blank - no frame is showing up

my C# UWP project works... but the designer sometimes is broken. 我的C#UWP项目可以工作...但是设计器有时会损坏。 If I do something I save my project and later... the designer shows nothing.. is all blank. 如果我做某事,我保存我的项目,以后……设计师什么也不显示。全部空白。 I cannot move something from the toolbox into the designer. 我无法将某些东西从工具箱移到设计器中。 If I close VS and load the project into Blend, still not there. 如果我关闭VS并将项目加载到Blend中,则仍然不存在。 What kind of dark magic is this? 这是什么黑魔法? If I create a new project, move all source code to it - it works - until I restart etc. 如果我创建一个新项目,请将所有源代码移至该项目-可以运行-直到重新启动等。

The designer is unfortunately quite buggy and it is being fully reworked for upcoming releases of Visual Studio. 不幸的是,设计器存在很多错误,正在为即将发布的Visual Studio版本进行完全重新设计。

I would suggest trying to open the project in Blend and checking if the designer works there. 我建议尝试在Blend中打开项目并检查设计器是否在其中工作。

Also - to see the preview, it is sometimes necessary to rebuild the solution so that the designer has the assemblies ready for use. 另外-要查看预览,有时必须重新构建解决方案,以便设计人员可以使用组件。

Important thing to note is that you have to set the x86 target platform to actually see the designer, it does not work properly when the target is set to ARM or x64. 需要注意的重要一点是,必须将x86目标平台设置为可以实际看到设计器,当目标设置为ARM或x64时,它不能正常工作。

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

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