Visual Studio 使用 TACO 维护 Web 托管 SPA 和混合应用程序的推荐方法是什么?

What's the recommended way in Visual Studio with TACO to maintain both a web hosted SPA and a hybrid app?

我不想建"Hosted App." 我确实想要在网络上托管一个单页应用程序。我想要同样的 UI 作为 Cordova 混合应用程序。 这是否需要在具有共享 HTML 和 CSS 文件的解决方案中维护两个单独的项目,或者我在这里缺少最佳实践?

I want that same UI also as a Cordova hybrid app. Does this require maintaining two separate projects in the solution with shared HTML and CSS files or is there a best practice I am missing here?

是的,您需要在解决方案中维护两个单独的项目,共享 HTML、CSS 和 JS 文件。没有项目类型可以 运行 作为 cordova 应用程序和 Web 应用程序。