Is PackageReference is only for .NET Core and .NET?

James J 586 Reputation points
2022-03-06T03:24:27.217+00:00

Hi,

I am planning to migrate Packages.config from .NET Framework 4.8 to PackageReference to maintain all Nuget package reference in one location. I read some of the articles saying, PackageReference is always recommended to use in .NET Core projects.

Is the recommendation TRUE or can i use the migrate for. NET framework projects as well. Can you please clarify.

Thanks,
James J

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,372 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,245 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Sreeju Nair 11,606 Reputation points
    2022-03-06T09:19:15.413+00:00

    In addition to what @Karen Payne MVP suggested, there is a good documentation that will help you in the migration

    https://learn.microsoft.com/en-us/nuget/consume-packages/migrate-packages-config-to-package-reference

    0 comments No comments