Visual Studio:从现有代码创建Web应用程序 [英] Visual Studio: Create a web application from existing code

查看:216
本文介绍了Visual Studio:从现有代码创建Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可以很好地签入SVN的现有目录结构,所以我真的不想弄乱它.

I have an existing directory structure that is all nicely checked into SVN, so I don't really want to mess with it.

该网站代码位于一个名为C:\ Projects \ TheProject \ Website的文件夹中.我想在不更改目录结构的情况下将网站文件放入新的Web应用程序项目 .

The website code lives in a folder called C:\Projects\TheProject\Website. I want to bring the website files into a new Web Application Project without changing the directory structure.

理想情况下,生成的文件结构如下所示:

Ideally the resulting file structure would look like this:

  • C:\ Projects \ TheProject \ TheProject.sln
  • C:\ Projects \ TheProjects \ Website \ Website.csproj

无论我尝试什么,我都没有得到想要的东西.没有选择从现有代码创建Web应用程序.这非常令人沮丧.有人知道这是否可能吗?

No matter what I try I dont get what I want. There is no option to create a web application from existing code. This is very frustrating. Does anyone know if it is possible?

推荐答案

使用.csproj文件创建一个新的Web项目.删除它附带的所有文件.将所有内容拖到项目中.

Create a new web project with a .csproj file. Delete all the files it comes with. Drag everything into the project.

这篇关于Visual Studio:从现有代码创建Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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