VS2015 - 如何从旧项目导入Web表单 [英] VS2015 - How to import web form from an older project

查看:73
本文介绍了VS2015 - 如何从旧项目导入Web表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个最初在10年前创建的asp.net项目。随着时间的推移,它已升级到更新的Visual Studio,因为它们已部署到我们的开发环境中。我们目前在VS2015上。


我们现在有一个使用Visual Studio 2015创建的新项目,并希望从旧项目中导入一些Web表单。 我们遇到的问题是,只需将MyWebForm.aspx和MyWebForm.aspx.cs(没有MyWebForm.designer.cs)
从较旧的项目复制到较新的项目中,所有的控件都是页面未定义。 旧项目没有MyWebForm.aspx.designer.cs文件。 当我们"去定义"时对于旧项目中的控件,popup说,"对象的
定义是隐藏的。"


那么,如何从旧版本导入Web表单投射到用VS2015创建的新版本?


谢谢!


Curt


解决方案

嗨Curt,


欢迎来到MSDN论坛。


请参阅您的描述,您的问题是关于ASP.NET开发。由于我们的论坛是讨论VS IDE,请重定向到这个适当的论坛:  https://forums.asp.net/29.aspx/1?Migrate+from+Other+Web+Technologies+to+ASP+NET
寻求一个更专业的支持,感谢您的理解。



致以最好的问候,


Sara


We have an asp.net project that was originally created 10+ years ago. Over time it has been upgraded to a newer Visual Studio as they get deployed into our development environment. We're currently on VS2015.

We now have a new project created with Visual Studio 2015 and want to import some of the web forms from the older project.  The problem we're having is that by merely copying the MyWebForm.aspx and MyWebForm.aspx.cs (there is no MyWebForm.designer.cs) from the older project into the newer one, all of the controls on the page are undefined.  The older project doesn't have a MyWebForm.aspx.designer.cs file.  When we "go to definition" of a control in the older project a popup says, "the definition of the object is hidden."

So, how does one import a web form from an older project into a newer one created with VS2015?

Thanks!

Curt

解决方案

Hi Curt,

Welcome to the MSDN forum.

Refer to your description, your issue is about the ASP.NET development. Since our forum is to discuss the VS IDE, please redirect to this appropriate forum: https://forums.asp.net/29.aspx/1?Migrate+from+Other+Web+Technologies+to+ASP+NET to seek for a more professional support, thank you for your understanding.

Best regards,

Sara


这篇关于VS2015 - 如何从旧项目导入Web表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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