Visual Studio中,TFS,MVC和传统ASP项目设置 [英] Visual Studio, TFS, MVC and Classic ASP Project Setup

查看:208
本文介绍了Visual Studio中,TFS,MVC和传统ASP项目设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一些存在的问题,但我只是想澄清这一最佳做法。我有一个我们希望迁移到MVC3经典ASP网站。我试图决定设置这一切了一个新的Visual Studio 2010的最佳的项目结构,TFS环境。

There are a number of questions existing but I am just trying to clarify best practice on this. I have Classic ASP site that we wish to migrate to MVC3. I am trying to decide the best project structure for setting this all up in a new Visual Studio 2010, TFS environment.

我要开始在Visual Studio中新的解决方案,并得到了正确的结构。我希望它做的权利,我有30个项目进行迁移。

I want to start a new Solution in Visual Studio and get the structure correct. I want it done right as I have about 30 projects to migrate.

在大多数项目中我有几百ASP,HTML,JavaScript中,CSS文件等,以及Access数据库。

In most projects I have a few hundred ASP, HTML, JavaScript, CSS files etc. and an Access Database.

我看到它提到最好的做法是保持ASP文件在一个单独的项目。
所以,我应该怎么设置?没有传统的ASP项目模板。所以我想我需要创建一些项目把我的ASP文件。我应该设置一个空的MVC应用程序,并添加ASP来呢?我在哪里可以保留现有的JS /图片等,这些也应该与传统的ASP存在。应该默认的项目是什么?

I saw it mentioned best practice was to keep the ASP files in a seperate project. So what should I setup? There is no Classic ASP project template. So I guess I need to create some sort of project to put my ASP files. Should I setup an empty MVC application and add the ASP to that? Where do I keep the existing JS/images etc. Should these also existing with the Classic ASP. What should the default project be?

有关源代码控制什么(我想我就像我会在一个正常的应用程序添加的所有内容)。关于发布等方面有哪些我想我只需要IIS与经典ASP支持Web服务器开启。我可以在应用层启用它?

What about Source Control (I assume I just add everything like I would in a normal app). What about publishing etc. I guess I just need IIS web server with Classic ASP support turned on. Can I enable it at the application level?

推荐答案

创建一个空的Web应用项目,添加文件/文件夹相同的结构,因为它们在Web服务器上存在。地图从IIS虚拟目录到项目文件夹,你是好去。在一个单独的项目开发您更换MVC的版本,而不是试图以经典的项目转换以零敲碎打的方式。

Create an "Empty web application" project, add your files/folders in the same structure as they existed on the web server. Map a virtual directory from IIS to your project folder and you're good to go. Develop your replacement MVC version in a separate project, rather than trying to convert the classic project in a piecemeal fashion.

另外请注意,传统的ASP 调试的支持仍然是可用在VS2010。

Also, note that debugging support for classic ASP is still available in VS2010.

编辑:如果您想份额的状态,微软对话题的文章。

If you want to share state between classic ASP and ASP.net, Microsoft have an article on the topic.

这篇关于Visual Studio中,TFS,MVC和传统ASP项目设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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