Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.37 KB

File metadata and controls

38 lines (30 loc) · 1.37 KB
title NuGet Error NU1013
description NU1013 error code
author jeffkl
ms.author jeffkl
ms.date 03/24/2025
ms.topic reference
f1_keywords
NU1013

NuGet Error NU1013

The following PackageReference items cannot specify a value for VersionOverride: PackageName. Projects using Central Package Management are currently configured to disable this functionality.

Issue

A project is configured to use NuGet Central Package Management and a <PackageReference /> item is defined which specifies a value for the VersionOverride attribute but this functionality has been disabled:

<PropertyGroup>
  <CentralPackageVersionOverrideEnabled>false</CentralPackageVersionOverrideEnabled>
</PropertyGroup>
<ItemGroup>
  <PackageReference Include="PackageName" VersionOverride="9.0.0" />
</ItemGroup>

Solution

  • Remove the VersionOverride attribute from the <PackageReference /> item:
<ItemGroup>
  <PackageReference Include="PackageName" />
</ItemGroup>