运行解决方案时,不会显示xaml设计器中所做的更改 [英] Changes made in xaml designer do not appear when solution is run

查看:58
本文介绍了运行解决方案时,不会显示xaml设计器中所做的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定这需要哪个论坛。


我可以看到所有变化对xaml做了。  但是,在构建并运行项目时,xaml是更改前的原始项目。  就像在构建过程执行时忽略xaml。


每次项目运行时都应该重新生成g.resources文件,从我的理解。  我的解决方案的g.resources文件上的日期时间戳是从上周开始的。  我将其重命名为其他内容,希望能够重新生成
,但会收到g.resources文件丢失的错误。  这可能是问题,我该如何解决?


在此问题得到解决之前,我无法继续开发。  


一位同事在他的电脑上加载了这个项目,并且在运行项目后能够看到所有的xaml变化。  他删除了g.resources文件并重新生成了它。  所以这对我的VS 2012副本来说是一个问题。我修复了它但仍然
有同样的问题。  



编辑添加: 我刚尝试创建一个全新的项目。  收到无法找到g.resources的错误。


再次编辑添加: 删除obj文件夹无法解决问题。





$

解决方案

嗨em_rdh,


感谢您在这里发帖。


你的是什么项目类型? WPF还是其他?


>>> 编辑添加: 我刚刚尝试创建一个全新的项目。  收到无法找到g.resources的错误。


您是否意味着在创建全新项目或构建项目时会出现错误?如果在构建项目时发生此错误,请尝试清理项目,然后重建它。检查g.resources是否通用。


如果项目创建时发生此错误,请尝试更新Visual Studio。


如果以上信息无法帮助你,请你分享我们更多细节步骤,以便我们可以重现这个问题。



希望这可以帮助你。


I'm not sure what forum this needs to be in.

I can see all changes I've made to xaml.  However when the project is built and run the xaml is the original before changes.  It's like the xaml is ignored when the building process is executing.

The g.resources file is supposed to be regenerated every time the project is run, from my understanding,.  The datetime stamp on the g.resources file for my solution is from last week.  I renamed it something else in hopes to get it to regenerate but get an error that the g.resources file is missing.  Could this be the issue and how do I fix it?

I cannot go on any further with development until this gets resolved.  

A colleague loaded the project on his pc and was able to see all xaml changes after running the project.  He removed the g.resources file and it was regenerated.  So this has to be a problem with my copy of VS 2012.  I repaired it but still have the same issue.  

Edited to add:  I just tried to create a brand new project.  Got an error that g.resources could not be found.

Edited again to add:  Removing the obj folder did not solve the problem.

解决方案

Hi em_rdh,

Thanks for posting here.

What is your project type? WPF or other?

>>>Edited to add:  I just tried to create a brand new project.  Got an error that g.resources could not be found.

Does you mean you would got the error when create a brand new project or when you build the project? If this error occurred when the project is built, please have try to clean the project, then rebuild it. Check if g.resources is general.

If this error occurred when the project create, please try to update your Visual Studio.

If above info could not help you, could you please share us more detail steps so that wo could reproduce this issue.

Hope this can help you.


这篇关于运行解决方案时,不会显示xaml设计器中所做的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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