简体   繁体   中英

Why does the same repository on different machines appear to have a different structure in Visual Studio Solution Explorer?

I have two PCs each with Visual Studio 2019. I have the same repository on each machine, on the same branch, both recently synchronised with origin. They appear to have exactly the same files (although I've not checked them all).

The repository is for a C# asp.net Core solution containing 6 projects.

The dependencies node under two of these projects appears to differ depending on which machine I view them;

在此处输入图像描述

在此处输入图像描述

What might be causing this discrepency and how might I resolve it?

I have tried deleting the entire repository from one machine and cloning it again. I have tried closing and reopening Visual Studio, I have cleaned and rebuilt the solution, I have turned my machine on and off.

I would start by checking what do those yellow warnings say. Besides checking the VS 2019 version installed in both machines, as well as compare the.Net Core SDK version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM