VS2017中无Project.JSON的解决方法
- 右击项目根目录,选择Edit 项目名.csproj。
- 在以下位置添加代码。
<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore" Version="1.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.0.5" />
</ItemGroup>
- 这样就可以调用MVC了。