如何在Visual Studio项目中包含.net网站源文件

本文关键字:包含 net 网站 源文件 项目 Visual Studio | 更新日期: 2023-09-27 18:05:06

我已经从客户端的httpdoc文件夹中下载了一个国外的web解决方案。

现在我需要在Visual Studio 2013/2015中编辑它们,但我不知道如何集成它们。

他们的html文件和文件夹;

global.asax
package.config
web.config
gruntfile.js bower.json
package.json
./app/components/account/
logincontroller.html
login.js
register.html
registercontroller.js  *and some more......)
./app/components/home/
indexcontroller
index.js 
and some more......)
./app/components/shared/ 
headercontroller.js 
header.html
more file like this......)
./app/components/
... and more folders
./app/services/ 
ajaxService.js
services.js and 
..a lot more .js files)
./app/vendors/
angular, bootstrap, jquery stuff)
./bin/
EntityFramework.dll
System.web.razor.dll  
...and  more dll's

对我来说,这看起来像MVC,但与文件夹结构我不理解

然而,我需要在VS中编辑,调试和运行源代码,我不知道如何包含它。我是否需要创建一个简单的项目(类型?)和复制和粘贴或这将如何工作。

你能给我一些建议吗?

如何在Visual Studio项目中包含.net网站源文件

我不确定我是否理解你的问题,但我猜你有一个ASP。. NET MVC项目,使用AngularjS。在解决方案资源管理器上右键单击现有项目中的路径,并添加现有文件。警告:您可能还需要包括dll文件。

我同意mason的观点。也许应该把这些文件添加到现有的项目中。

看起来像Angular的SPA。可能没有。net方面(即VS只是用作编辑器)。只需将这些文件复制到一个新的VS项目中。如果它已经编译了与之相关的代码,将很难重现。net代码。