Explore Library
Code QuizAdvanced

Fixing a Broken PackageReference

Spot the mistake in a .csproj file that stops a NuGet package from restoring.

Codexml
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Name="Newtonsoft.Json" Version="13.0.3" />
  </ItemGroup>

</Project>

This project fails to restore the NuGet package. What is the bug?