visual2010编写html,Visual Studio 2010的简单HTML项目类型(simple HTML project type for Visual Studio 2010)...

Visual Studio 2010的简单HTML项目类型(simple HTML project type for Visual Studio 2010)

我们正在使用Visual Studio 2010开发基于REST的应用程序,使用asp.net web api,我们希望使用IIS托管它。

对于客户端,我们要使用纯html,css和javascript访问和使用这个基于REST的应用程序。

但是我们在VS 2010中找不到任何项目类型的HTML Web应用程序或站点。我们不想使用asp.net或mvc空项目。

是否有任何项目类型可用或任何其他最好的方式来做到这一点?

We are developing a REST based application using Visual Studio 2010, using asp.net web api and we want to host it using IIS.

For the client side, we want to use pure html, css and javascript to access and using this REST based application.

But we could not find any project type HTML web application or site in VS 2010. WE do not want to use asp.net or mvc empty project.

Is there is any project type available or any other best way to do this?

原文:https://stackoverflow.com/questions/11290440

更新时间:2019-06-27 08:04

最满意答案

在驱动器上为网站创建一个文件夹。 然后创建一个空白解决方案项目(其他项目类型 - > Visual Studio解决方案)。 最后,右键单击您的解决方案,然后选择“添加 - >现有网站”,在“添加现有网站”对话框中选择文件系统,并导航到您的网站文件夹。

Create a folder on your drive for the website. Then create an Blank Solution project (Other Project Types -> Visual Studio Solutions). Finally, right click in your solution and choose "Add -> Existing website", select file system in the Add Existing Web Site dialog, and navigate to your web site folder.

相关问答

当你说“不能再运行它”时会发生什么? sln文件不兼容; 每个VS版本都需要不同的sln文件 csproj 大多是兼容的,尽管你可能会看到“版本4不被识别,使用3.5而不是”警告或两个,通常是罚款 只要您不使用dynamic或其他新语言功能,cs就是兼容的 在大多数情况下,您只需为VS2010提供一个单独的sln即可脱身。 因此,只需将其重命名为“Whatever_2010.sln”,从源代码库中取回旧的“Whatever.sln”,并将其重命名为“Whatever_2008.sln”。 When

...

在驱动器上为网站创建一个文件夹。 然后创建一个空白解决方案项目(其他项目类型 - > Visual Studio解决方案)。 最后,右键单击您的解决方案,然后选择“添加 - >现有网站”,在“添加现有网站”对话框中选择文件系统,并导航到您的网站文件夹。 Create a folder on your drive for the website. Then create an Blank Solution project (Other Project Types -> Visual Studio S

...

是。 但是您需要安装SP1和Web标准更新 http://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83 Yes. But you need to install SP1 and the Web Standards Update http://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83

这不是对多重定位的限制。 这是对同一项目上运行的多个Visual Studio版本的限制。 是的,你必须升级项目文件。 这就是为什么组织中的所有开发人员最好同时切换的原因。 这绝不限制多重定位。 This is not a restriction on multi-targeting. It's a restriction on multiple versions of Visual Studio operating on the same projects. Yes, you'll have t

...

Visual Web Developer复选框未作为自定义Visual Studio安装的一部分进行检查。 进行更改/修复并勾选该框以解决问题。 奇怪 - 其他网络项目加载很好。 这是唯一出错的项目。 The Visual Web Developer check box was not checked as part of custom Visual Studio install. Doing an change/repair and ticking that box fixed the issu

...

在Visual Studio 2010中启动ASP.NET Web应用程序并删除所有.ASPX文件并创建.HTML文件。 IDE非常支持HTML和JavaScript(至少对于jQuery),但它并不专注于您的使用案例。 通常使用Visual Studio进行HTML相关工作的人是像我这样的ASP.NET开发人员。 纯HTML工作非常“繁重”。 Start an ASP.NET Web Application in Visual Studio 2010 and delete all of the

...

找到它: fftw_create_plan()和fftw_one()是已从FFTW3中删除的函数。 您可能已经获得了FFTW2教程的代码,请参阅FFTW3教程 。 Found it: fftw_create_plan() and fftw_one() are functions that have been removed from FFTW3. You might have got the code from FFTW2 tutorial, see the FFTW3 tutorial inst

...

我不认为VS2010对Angular 2有项目支持,但你可以使用VS2015。 如果许可是一个问题,总会有免费的社区版本。 你可以在这里下载https://www.visualstudio.com/downloads 要在VS2015中设置Angular2,请查看此博客,它有一些很棒的设置说明。 http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio 您还可以将Visual Studio代码用于A

...

我正在使用Visual Web Developer 2010 Express,我看到了它。 以下是我的工作: 文件>新项目 然后在Web模板下,您将找到ASP.Net MVC 2 Web应用程序 你不会在File> Web Site下找到它,我假设你可能正在查看它。 It's necessary to install Visual Web Developer 2010 Express.

见前一个问题 Visual Studio Web开发面向ASP.NET项目创建,但您可以毫无问题地构建HTML和JS应用程序,删除为ASP.NET应用程序创建的额外目录,这些目录需要它。 See Previous Question Visual Studio Web Development is orientated to ASP.NET projects creation, but you can build without any problem, HTML & JS applications

...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值