简体   繁体   English

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

[英]how to include net web site source files in Visual Studio project

i have downloaded a foreign web solution from my clients httpdoc folder. 我已经从我的客户的httpdoc文件夹下载了一个外部Web解决方案。

Now i need to edit them in Visual Studio 2013/2015 but i dont know how to integrate them. 现在,我需要在Visual Studio 2013/2015中对其进行编辑,但是我不知道如何集成它们。

their htdocs files and folders; 他们的htdocs文件和文件夹;

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

For me this looks MVC like, but with a folder structure i do not understand 对我来说,这看起来像MVC,但是我不了解其文件夹结构

However, i need to edit, debug and run the sources in VS and i have no idea how to include it. 但是,我需要在VS中编辑,调试和运行源,并且我不知道如何包括它。 Do i need to create a simple project (type?) and copy and paste or how would this work. 我是否需要创建一个简单的项目(类型?)并复制并粘贴,或者这将如何工作。

Can you please advice me? 你能给我建议吗?

I am not sure if I understand your question but I am guessing you have an ASP.NET MVC project using AngularjS. 我不确定我是否理解您的问题,但是我猜您有使用AngularjS的ASP.NET MVC项目。 Right click the path from your existing project on Solution Explorer and add existing files. 右键单击解决方案资源管理器中现有项目的路径,然后添加现有文件。 Warning: You might need to include dll files as well. 警告:您可能还需要包括dll文件。

I agree with mason. 我同意梅森。 Probably should just add the files to an existing project. 可能应该只将文件添加到现有项目中。

Looks like an Angular SPA. 看起来像一个Angular SPA。 May have no .Net aspect to it (ie VS just used as an editor). 可能没有.Net方面(即VS仅用作编辑器)。 Just copy the files into a new VS project. 只需将文件复制到新的VS项目中即可。 If it has compiled code associated with it, it will be hard to reproduce the .Net code. 如果它具有与其关联的已编译代码,则将很难重现.Net代码。

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

相关问题 在Visual Studio中使用“网站项目”调试Typescript(或JavaScript) - Debug Typescript (or JavaScript) with a “Web Site Project” in Visual Studio 如何在Visual Studio中将JavaScript包含到Web App Projet中? - how to include javascript into web app projet in visual studio? 在 Visual Studio C++ 项目中自动更新 node-gyp 包含文件的路径 - Auto-update path to node-gyp include files in a Visual Studio C++ project 如何在(ASP.NET)项目中正确包含JavaScript文件? - How to include JavaScript files properly in (ASP.NET) project? 如何将 javascript 文件添加到 Visual Studio Community 2019 typescript 项目 - How add javascript files to Visual Studio Community 2019 typescript project 源代码管理中的Visual Studio 2017文件 - Visual Studio 2017 files in source control 如何在Web项目中包含jsonpipe - How to include jsonpipe in web project Visual Studio 2013-在Web项目上安装的JSLint.NET不显示预期的Jslint菜单选项 - Visual Studio 2013 - JSLint.NET install on web project does not show the expected Jslint menu options 如果javascript文件中存在语法错误,我能否使asp.net visual studio 2013项目构建失败? - Can I fail asp.net visual studio 2013 project builds if there's syntax errors in javascript files? ASP.NET 4.6 WEB API,不提供静态文件(.js,.css)IIS Express Visual Studio - ASP.NET 4.6 WEB API, Not serving static files(.js, .css) IIS express visual studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM