ASP.NET Core RC2 Area not published

后端 未结 2 1806
粉色の甜心
粉色の甜心 2021-02-19 02:40

So I just updated my app to use ASP.NET Core RC2. I published it using Visual Studio and noticed that my Area is not published:

This snapshot is from src\\MyProjec

2条回答
  •  無奈伤痛
    2021-02-19 03:27

    Adding Areas will copy everything including the .cs files.

    so should add "Areas/**/Views/**/*.cshtml" and "Areas/ * /.cshtml" under publish options instead of only "Areas"

提交回复
热议问题