1

How do I downgrade the Microsoft.NETCore.App package in Visual Studio 2017?

The package manager shows it as 'Blocked by project'

VS 2017 Package Manager

I need to do this as Azure web apps do not yet have the 1.1.2 .NET Core runtime installed.

ekad
  • 14,436
  • 26
  • 44
  • 46
Steve Jackson
  • 295
  • 4
  • 9

1 Answers1

1

A specific version of the package can be used by editing the csproj file and adding a package reference that specifies Update instead of Include

<ItemGroup> <PackageReference Update="Microsoft.NETCore.App" Version="1.1.1" /> <PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" /> <PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />

Steve Jackson
  • 295
  • 4
  • 9