C# Tips

C# Tip Article

VS 2017 - Project file is incomplete. Expected imports are missing

Problem

I created new ASP.NET Core 2.1 project in VS 2017. Project build was successful on the machine. I checked the source code into git server and then git-cloned the source code in another machine where VS 2017 was installed. When opening the project in VS 2017 on another machine, I got the following error:
"Project file is incomplete. Expected imports are missing"

Solution

There are many different cases and fixes regarding this problem in this stackoverflow link.

In my case, I had to update my Visual Studio 2017 from v15.7 to v15.9.