After the internal package reference version of the central package file was changed, the project reference version remained unchanged during VS recompilation

墨 溪 0 Reputation points

To meet development needs, automatic package publishing and automatic modification of the corresponding version in the central package management file have been developed. However, when compiling the project (including recompilation), the NuGet package version referenced by the project is not reloaded as the changed version in the central package, but rather the previous old version, At this point, all open Visual Studios must be closed and recompiled before the NuGet package can be changed to the version in the central package file.

Visual Studio version: Microsoft Visual Studio Professional 2022 (64 bit) - Preview (17.8.0 Preview 7.0).

Project language: C #.

Framework version: 4.0

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,084 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 20,256 Reputation points Microsoft Vendor

    Hi @墨 溪, 

    Welcome to Microsoft Q&A! 

    Central package management is in active development. For the related issue, please report it in GitHub/NuGet

    Thanks for your understanding! 



    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    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.


    0 comments No comments