Angular 从asp.net mvc端口重定向到角度端口视图

Angular 从asp.net mvc端口重定向到角度端口视图,angular,asp.net-mvc,typescript,webapi,Angular,Asp.net Mvc,Typescript,Webapi,在myHomeController中,我有: public ActionResult Index() { return Redirect(ConfigurationManager.AppSettings["angularStartupUrl"]); } <add key = "angularStartupUrl" value = "http://localhost:4200/" /> 在web.config中,

在my
HomeController
中,我有:

public ActionResult Index()
{
    return Redirect(ConfigurationManager.AppSettings["angularStartupUrl"]);
}
 <add key = "angularStartupUrl" value = "http://localhost:4200/" />
web.config
中,我有:

public ActionResult Index()
{
    return Redirect(ConfigurationManager.AppSettings["angularStartupUrl"]);
}
 <add key = "angularStartupUrl" value = "http://localhost:4200/" />

appSettings

这将帮助我直接从VisualStudio2019获取角度视图,但我需要从home controller获取角度视图的标准方法,以便发布它。当我在服务器上发布我的项目后,它会显示localhost,但它不起作用。因此,任何我可以使homecontroller达到angular视图的解决方案,在我发布后angular和asp.net mvc都具有相同的ip,都是值得赞赏的