简体   繁体   English

Visual Studio创建空白的aspx:1文件

[英]Visual Studio creating blank aspx:1 files

I'm currently using VS Community 2013 but I've seen this behaviour in previous versions of VS. 我当前正在使用VS Community 2013,但在VS的早期版本中已经看到了此行为。

Scenario: I have previously saved and closed a solution whilst it has several tabs open. 场景:我之前保存并关闭了一个解决方案,同时打开了多个选项卡。 I then re-open the solution. 然后,我重新打开解决方案。 The open tabs reload, but (as far as I can tell randomly) one or more of the aspx files that were open when I last saved and closed the solution, are recreated as a blank file with the extension aspx:1 or aspx:2. 重新打开了打开的选项卡,但是(据我所能随机告诉),上次保存和关闭解决方案时打开的一个或多个aspx文件被重新创建为空白文件,扩展名为aspx:1或aspx:2 。

Closing the blank file & reopening that file from the Solution Explorer restores the correct version of the file. 关闭空白文件并从解决方案资源管理器中重新打开该文件将还原文件的正确版本。 No work is lost, so I admit this is an irritation rather than a crisis. 没有工作丢失,所以我承认这是一种刺激而不是危机。

What's going on, and more importantly any idea how I can make it stop? 发生了什么,更重要的是,我知道如何使它停止吗? I have got the Preview Tab functionality (Options >> Environment >> Tabs and Windows) turned off. 我已经关闭了“预览选项卡”功能(“选项” >>“环境” >>“选项卡和Windows”)。 Thanks 谢谢

http://ambracode.com/index/show/161001上说:“这是克隆窗口时Visual Studio的命名约定。但是,有时Visual Studio只是感到困惑并以这种方式命名。”

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

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