是否可以在Visual Studio中不使用.net框架来构建SPA? [英] Is it possible to build a SPA without using .net framework in visual studio?
问题描述
标题应该不言自明,但以防万一.我正在尝试构建一个将在azure上托管的有角度的应用程序.目前,我在使用kestrel时遇到一些问题,因此我想在Visual Studio中构建应用程序,但不使用任何.net代码(因此,无需startup.cs或program.cs). 如果答案是肯定的否,那么我想我需要找到另一个能够满足我要求的IDE.
The title should be self-explanitory, but just in case. I am trying to build an angular application which will be hosted on azure. Currently I am having some issues with using kestrel, so I would like to build the application in visual studio but without using any .net code (so no startup.cs or program.cs). If the answer is plainly no, then I guess I will need to find another IDE that will do what I require.
推荐答案
是的.只需创建一个网站项目而不是一个Web应用程序项目.
Yep. Just create a website project instead of a web application project.
https://msdn.microsoft.com/en-us/library/dd547590.aspx
其中首选网站项目的方案包括以下内容:
Scenarios in which Web site projects are the preferred choice include the following:
您不需要显式编译项目即可进行部署.
You do not want to have to explicitly compile the project in order to deploy it.
这篇关于是否可以在Visual Studio中不使用.net框架来构建SPA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!