简体   繁体   English

如何在Visual Studio 2015中重新生成Designer文件

[英]How do I regenerate designer File in Visual Studio 2015

I am getting error as 我收到错误消息

The name does not exist in the current path as in issue link Name does not exist in the current context 该名称在当前路径中不存在,因为存在问题链接名称在当前上下文中不存在

I have tried all options in the comments but still unable to find solution, 我已经尝试了评论中的所有选项,但仍然找不到解决方案,

One comment their says to regenerate designer file by right clicking and selecting "Convert to Web Application" but am already using web application and on right click of it am not getting that option. 他们的评论之一是通过右键单击并选择“转换为Web应用程序”来重新生成设计器文件,但是已经在使用Web应用程序,而右键单击它并没有得到该选项。 Attaching reference Image. 附加参考图像。 Any suggestions? 有什么建议么?

在此处输入图片说明

I'm a little late to the party here, but I have a solution (and it's as easy as you hoped): 我在这里参加聚会有点晚,但是我有一个解决方案(而且它很容易实现):

The "Convert To Web Application" menu option was moved to the Project menu item across the top of the Visual Studio 2015 application. “转换为Web应用程序”菜单选项已移动到Visual Studio 2015应用程序顶部的“项目”菜单项。

  • First, delete the desired designer file. 首先,删除所需的设计器文件。
  • Next, click on the ASPX page of the one you want to regenerate the designer for. 接下来,单击您要为其重新生成设计器的ASPX页面。 If you click on the CS page, the option will not show up in the menu. 如果单击CS页面,该选项将不会显示在菜单中。
  • Click on Project from the top menus and you should see "Convert To Web Application" in the menu. 从顶部菜单中单击“项目”,您应该在菜单中看到“转换为Web应用程序”。 It should be all the way at the bottom of that popup menu. 它应该一直在弹出菜单的底部。

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

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