How to change root path ~/ in Razor in asp.net core

前端 未结 1 1835
时光取名叫无心
时光取名叫无心 2021-02-13 20:03

The simplest question for which I can\'t find an answer.

I have an asp.net core 2.1 MVC application with Razor.

Application widely uses ~/path synta

1条回答
  •  心在旅途
    2021-02-13 20:40

    In your "Startup" class in the "Configure" method use next:

    app.UsePathBase("/yourBasePath");
    

    0 讨论(0)
提交回复
热议问题