Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have the MVC project with .NET CORE 2.2
I add Areas in my project it work properly when in the local machine.

I setup CI CD pipeline with Azure Devops, when the application is published successfully. I notice my Areas is not render properly, this below is from azurewebsites.

Screen Shot

And this below is display when i debug locally, can someone help. where goes wrong

Screen Shot

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
148 views
Welcome To Ask or Share your Answers For Others

1 Answer

The issue is on .csproj It include this line, i got no idea how it add this in csproj. but when i removed from the csproj it work properly.

<ItemGroup>
    <Content Remove="AreasAdminViews\_ViewImports.cshtml" />
    <Content Remove="AreasAdminViews\_ViewStart.cshtml" />
    <Content Remove="AreasAdminViewsShared\_Layout.cshtml" />
    <Content Remove="ViewsShared\_Layout.cshtml" />
  </ItemGroup>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...