I had the same issue, but my reason was that I was using a network folder for the csproj and source code. After moving to a local folder, the problem was gone.