Visual studio Visual Studio不使用ASP.NET构建网站

Visual studio Visual Studio不使用ASP.NET构建网站,visual-studio,visual-studio-2015,Visual Studio,Visual Studio 2015,我正在(专业地)开发一个使用C#server后端的网站,我们的前端是用Typescript编写的。因为我们使用的是Microsoft语言,所以使用Visual Studio进行开发是有意义的,然而,因为我们的后端是C#,所以我们不需要ASP.NET,但是因为我们使用的是Typescript,所以我们仍然希望“构建”网站。我们的解决方案包括一系列C#项目,这些项目都可以正常构建和运行,还有一个网站项目名为“ExpressWeb”,其中包含构成前端的所有脚本、标记和样式 我们使用gulp.js通过T

我正在(专业地)开发一个使用C#server后端的网站,我们的前端是用Typescript编写的。因为我们使用的是Microsoft语言,所以使用Visual Studio进行开发是有意义的,然而,因为我们的后端是C#,所以我们不需要ASP.NET,但是因为我们使用的是Typescript,所以我们仍然希望“构建”网站。我们的解决方案包括一系列C#项目,这些项目都可以正常构建和运行,还有一个网站项目名为“ExpressWeb”,其中包含构成前端的所有脚本、标记和样式

我们使用gulp.js通过TaskRunner插件运行构建任务,所以基本上我们只希望它在“构建后”挂钩上运行一个gulp任务。这样,当开发人员想要构建所有东西(我们都在后端和前端工作)时,他们只需使用VisualStudio的build命令

我们遇到的问题是,每当我们试图构建网站时,VisualStudio都会试图将其扔给ASP.NET编译器。由于部署机器只使用命令行构建工具,因此我们可以通过删除
项目部分中的所有内容来绕过这一问题,这样它就可以看到没有什么事情可做,然后手动运行gulp任务。然而,为了让开发人员运行构建钩子,我们仍然希望能够点击“构建”,然后在需要时构建所有内容。从visual studio生成时,它会生成一个新的.sln文件,并导致
ProjectSection
如下所示:

ProjectSection(WebsiteProperties) = preProject
    TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
    Debug.AspNetCompiler.VirtualPath = "/localhost_56894"
    Debug.AspNetCompiler.PhysicalPath = "ExpressWeb\"
    Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_56894\"
    Debug.AspNetCompiler.Updateable = "true"
    Debug.AspNetCompiler.ForceOverwrite = "true"
    Debug.AspNetCompiler.FixedNames = "false"
    Debug.AspNetCompiler.Debug = "True"
    Release.AspNetCompiler.VirtualPath = "/localhost_56894"
    Release.AspNetCompiler.PhysicalPath = "ExpressWeb\"
    Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_56894\"
    Release.AspNetCompiler.Updateable = "true"
    Release.AspNetCompiler.ForceOverwrite = "true"
    Release.AspNetCompiler.FixedNames = "false"
    Release.AspNetCompiler.Debug = "False"
    VWDPort = "56894"
    SlnRelativePath = "ExpressWeb\"
EndProjectSection
ProjectSection(WebsiteProperties) = preProject
    TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
    SlnRelativePath = "ExpressWeb\"
EndProjectSection
当时的工作情况是这样的:

ProjectSection(WebsiteProperties) = preProject
    TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
    Debug.AspNetCompiler.VirtualPath = "/localhost_56894"
    Debug.AspNetCompiler.PhysicalPath = "ExpressWeb\"
    Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_56894\"
    Debug.AspNetCompiler.Updateable = "true"
    Debug.AspNetCompiler.ForceOverwrite = "true"
    Debug.AspNetCompiler.FixedNames = "false"
    Debug.AspNetCompiler.Debug = "True"
    Release.AspNetCompiler.VirtualPath = "/localhost_56894"
    Release.AspNetCompiler.PhysicalPath = "ExpressWeb\"
    Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_56894\"
    Release.AspNetCompiler.Updateable = "true"
    Release.AspNetCompiler.ForceOverwrite = "true"
    Release.AspNetCompiler.FixedNames = "false"
    Release.AspNetCompiler.Debug = "False"
    VWDPort = "56894"
    SlnRelativePath = "ExpressWeb\"
EndProjectSection
ProjectSection(WebsiteProperties) = preProject
    TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
    SlnRelativePath = "ExpressWeb\"
EndProjectSection
有没有什么方法可以不使用ASP.NET构建网站,或者如果没有,有什么方法可以阻止visual studio在解决方案文件中覆盖此特定项目的构建说明,而不使整个内容保持不变