How to change the order of ProjectReference tag in vcproj or vcxproj?

  c++, vcproj, vcxproj, visual-c++

I’m using MS Visual Studio 2019 to build a c++ project
I have a solution and three projects in it
one is for the executable and others are for the static libraries

Now I want to change the order of linking the libraries
And finally found that they are linked in the order of its order in project.vcxproj
I changed the order manually with text editor and finally succeeded to get the result

But I don’t know how to do it in Visual Studio GUI
If the libraries are described as below in my project.vcxproj
Can I change the order of the libraries with Visual Studio GUI?

...
  <ItemGroup>
    <ProjectReference Include="..ALibraryALibrary.vcxproj">
      <Project>{dbc3f07c-3bf9-4582-99c8-cbd8fe344e5c}</Project>
    </ProjectReference>
    <ProjectReference Include="..BLibraryBLibrary.vcxproj">
      <Project>{fbbe1fd4-e968-40d8-aab8-e2a54e9c9268}</Project>
    </ProjectReference>
  </ItemGroup>
...

Source: Windows Questions C++

LEAVE A COMMENT