VWD 2012和Expression Web在不告诉我的情况下更改了我的代码 [英] VWD 2012 and Expression Web change my code without telling me

查看:69
本文介绍了VWD 2012和Expression Web在不告诉我的情况下更改了我的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很多年前我停止使用VS因为它改变了代码而没有告诉我。  我正在开发一个对主页进行更改的项目。  我发现Expression Web 4(EW4)可以最好地呈现主页,特别是当它们嵌套时。


我注意到了我的"头部"。标签已更改,它有一个ID并设置为runat =" Server",这两个属性都丢失了。  所以我再次将它们放入并保存,然后EW4再次删除了属性。  所以我想我会下载最新的VWD 2012,
也许它使用与EW4相同的渲染。  不幸的是它没有,但我发现它在保存时也改变了头标记。


两个产品都没有在标签下面添加一条波浪形的红线表示它是错误的,都删除了保存文件时的ID和runat属性。


它还有什么变化,为什么要修改我的代码?


我现在必须抛弃我的所有工作,然后重新开始使用VS 2010.


在保存的东西删除我的属性之后会发生这种情况,你可以看到这个,因为*在保存后不会消失,相反,代码被修改,下次我进行保存时,我会丢失头标记中的属性。


我失去的是什么,为什么我的代码在没有错的时候改变了与它?

解决方案

请确保您在论坛中提出您的问题,其中您的主题与您要求的论坛相关

Many years ago I stopped using VS because it changed code and didn't tell me.  I am working on a project doing changes to masterpages.  I find Expression Web 4 (EW4) does the best render of masterpages, especially when they are nested.

I noticed my "head" tag had been changed, it had an ID and was set to runat="Server", both of these attributes were missing.  So I put them in again and saved, EW4 then removed the attributes again.  So I thought I'd download the latest VWD 2012, maybe its using the same rendering as EW4.  Unfortunately it doesn't, but I found it also changed the head tag when it saved.

Neither product put a squiggly red line under the tag to say it was wrong, both removed the ID and runat attributes when you saved the file.

What else is it changing and why is it modifying my code?

I now have to throw out all my work and start again using VS 2010.

What happens is, after you save something removes my attributes, you can see this as the * doesn't disappear after the save, instead the code gets modified, the next time I do a save I lose the attributes from my head tag.

WHAT ELSE AM I LOSING AND WHY IS MY CODE BEING CHANGED WHEN THERE IS NOTHING WRONG WITH IT?

解决方案

Please make sure that you are asking your question in a forum where your topic is relevant to the forum you're asking it in.


这篇关于VWD 2012和Expression Web在不告诉我的情况下更改了我的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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