Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将C#应用程序剥离为静态web应用程序_C#_Web - Fatal编程技术网

将C#应用程序剥离为静态web应用程序

将C#应用程序剥离为静态web应用程序,c#,web,C#,Web,我们将前端与后端(C#.NET MVC)分离,这样后端开发人员就不会阻塞前端。我将使用API,而不是大量的本地数据库更新 到目前为止,我一直在VS中工作,但希望在另一个编辑器中工作,并且能够直接在浏览器中启动前端 除了索引页是index.cshtml之外。索引文件中没有需要cshtml的内容,因此我可以将其转换为.html-唯一的问题是,现在在VS中启动应用程序失败,因为它只需要启动cshtml文件,即: 找不到视图“索引”或其主视图,或者没有视图引擎支持搜索的位置。已搜索以下位置: ~/Vie

我们将前端与后端(C#.NET MVC)分离,这样后端开发人员就不会阻塞前端。我将使用API,而不是大量的本地数据库更新

到目前为止,我一直在VS中工作,但希望在另一个编辑器中工作,并且能够直接在浏览器中启动前端

除了索引页是index.cshtml之外。索引文件中没有需要cshtml的内容,因此我可以将其转换为.html-唯一的问题是,现在在VS中启动应用程序失败,因为它只需要启动cshtml文件,即:

找不到视图“索引”或其主视图,或者没有视图引擎支持搜索的位置。已搜索以下位置:
~/Views/Home/Index.cshtml
~/Views/Home/Index.vbhtml
~/Views/Shared/Index.cshtml
~/Views/Shared/Index.vbhtml
等等

我的问题是:如何修改index.cshtml或服务器,以便在浏览器中加载应用程序而不必通过Visual Studio运行它

这是VS中的当前结构,我希望取消其中大部分:

App.Data.EntityFramework
App.Data.Sql
App.Domain
App.DomainEntities
App.Presentation.Web
    App_Data
    App_Start
    Areas
    Content
        CSS
        js
            apps
            dashboard
                controllers
                views << dashboard files
            store  << 90% of my files are here
                controllers
                views
                services
                etc.
    Controllers
    ControllersApi
    Models
    Providers
    Results
    Views
        Home
            index.cshtml << actual start page
App.Data.EntityFramework
App.Data.Sql
应用程序域
App.DomainEntities
App.Presentation.Web
应用程序数据
应用程序启动
地区
内容
CSS
js
应用程序
仪表板
控制器

视图另一个线程的可能重复对于从其C#根中释放站点没有多大作用。这就是我试图做的:尽管它不完整。另一个线程的可能重复对于从其C#根中释放站点没有多大作用。这就是我试图做的:尽管它不完整。