Avoiding use of C:\Users\username\.nuget\packages\ folder

Richard Twyning 1 Reputation point
2021-07-02T08:42:35.847+00:00

We have a huge Solution which has six individual projects. I have had to add one to handle Windows 10 Notifications using the Microsoft.Toolkit.UWP.Notifications nuget. Unfortunately this meant converting this project to a PackageReference. The rest of the projects do not use this, they all use the standard package.config method.
The nuget path is in the C:\Users\username.nuget\packages\ folder. This causes a problem when we all check in/out of Git as we obviously all have different users paths.

Is there any way to override where the Notifications widget gets installed to?
Or, is there a way to override the requirement for it to be migrated to a PackageReference project?

Many thanks.

Developer technologies .NET Other
{count} votes

1 answer

Sort by: Most helpful
  1. PengGe-MSFT 3,381 Reputation points
    2021-07-05T08:41:55.35+00:00

    Hi, @Richard Twyning

    Welcome to Microsoft Q&A!

    About how to migrate your project from packages.config to PackageReference, you can refer to this document.

    Sincerely,
    Peng
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.