I have a new project for a new job. The project will not build on my computer. It has yellow triangles under every reference that isn't a project in the solution. It even has a yellow triangle for microsoft.csharp. I have been digging and tried many things online and on stack overflow. Anyone have an ideas, would love to keep this job. Thanks.
Asked
Active
Viewed 52 times
3 Answers
1
Like @Dai and @Michael suggest, you need to re-install the references. I just provide the detail.
There are many ways to do it. This is what I usually do.
Step 1: Enable NuGet package restore.
Step 2: go to the packages
folder of your project: C:\path\your project\packages\
Step 3: delete everything in that folder
Step 4: open the project again in VS and Build the project (Build > Build Solution). NuGet will download and re-install all required packages

AndyLe
- 71
- 5
0
- try to do a build first
- if that doesn't fix it then restore the nuget packages
- if that doesn't work then clear your local nuget cache and rebuild the project

Fancy5g
- 99
- 4