更新时间:2023-08-21 20:49:58
As suggested in the comment, I updated global.json file as shown below
{
"sdk": {
"version": "1.0.0"
}
}
Also, I had to remove the <ItemGroup>
which contains wwwroot files path in .csproj file.
Reload the project and it works like a charm!