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
2023-11-13T07:56:04.4266667+00:00

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.
5,108 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 28,761 Reputation points Microsoft Vendor
    2023-11-13T11:41:45.8066667+00:00

    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! 

    Sincerely,

    Anna


    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

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.