What's New
- Version 2.0 of central package versions (#31)
Version 2.0 Breaking Changes
In version 2.0 of the package, we have deprecated the PackageVersion
item and instead are using <PackageReference Update="Package" />
. To migrate an existing code base to use the newer version, please do the following:
- Search and replace
PackageVersion Include
withPackageReference Update
in yourPackages.props
v1.0:v2.0:<ItemGroup> <PackageVersion Include="PackageA" Version="1.0.0" /> </ItemGroup>
<ItemGroup> <PackageReference Update="PackageA" Version="1.0.0" /> </ItemGroup>
- Remove all
PackageVersion
items inPackages.props
for global package references and instead specify the version on the<GlobalPackageReference />
item
v1.0:v2.0:<ItemGroup> <PackageVersion Include="PackageA" Version="1.0.0" /> <GlobalPackageReference Include="PackageA" /> </ItemGroup>
<ItemGroup> <GlobalPackageReference Include="PackageA" Version="1.0.0" /> </ItemGroup>
- Remove all
PackageVersion
items in individual projects, setVersionOverride
to override a version, and move metadata to the corresponding<PackageReference/>
item in the project file.
v1.0:v2.0:<ItemGroup> <PackageVersion Include="PackageA" Version="1.0.0" ExcludeAssets="Build" /> <PackageReference Include="PackageA" /> </ItemGroup>
<ItemGroup> <PackageReference Include="PackageA" VersionOverride="1.0.0" ExcludeAssets="Build" /> </ItemGroup>