Cannot start solution from TFS because all links are missing

I have a project that works great. This morning I created a new TFS project and published all the code from Visual Studio 2015.

On another computer, also through VS2015, I joined Visual Studio Team Services to capture the same project and download all the code

When I try to build, there are more than 100 errors, but the reason seems the same. It cannot find resources, and all error messages look like

The namespace name type "some name" does not exist in "...." (do you miss the assembly reference?)

So, I am expanding the links, and I skip almost all of them. In fact, apart from the links in my own project, there are no others.

When looking at properties there is no way. Back to the original computer. I see that the path to any of the dlls is similar too.

C: \ Users \ Me \ Documents \ Visual Studio 2015 \ Projects \ MyProj \ ToT \ packages \ Antlr.3.5.0.2 \ lib \ Antlr3.Runtime.dll

The problem is that, since this path does not match on the “faulty” machine, it cannot show ... Therefore, what is the solution for this

enter image description here

I checked and noted that the files seem to exist when I look at them in Explorer.

All system links missing from Visual Studio 2013 NuGet Async did not help

Please note that this happens with all projects in my solution, but not more often. For example, EntityFramework is missing from everyone, but System is not at my user interface level, but not from my BLL layer

Is there any way to fix this?

+7
tfs visual-studio-2015 vsts
source share
7 answers

You need to run the update-package -reinstall command to reinstall all referenced packages.

+6
source share

I had the same problem, now there are many answers, but I will post it here anyway:

1. Close Visual Studio 2. Delete the local "packages" folder. 3. Cut the solution and rebuild. (Nuget should restore packages)

Source: http://robertgreiner.com/2013/09/team-foundation-service-build-error-nuget/

+6
source share

First go to VS - Tools - Extensions and Updates to check for updates, install all updates. Then select one link using the warning icon, check the Specific version property, if the value is True, change it to False .

If the problem persists, check the reference assemblies of the .Net framework on two computers to see if they are in the same place (it is assumed that the .Net infrastructure should be under * C: \ Program Files (x86) \ Assemblies \ Microsoft \ Framework links .NETFramework *).

==================================================== ======================= 11/5: To avoid shortcomings in the links, you can either check all the links to the source control and the link from the source files, or use Nuget Package Manager for installing packages. The previous is not recommended now, try the Nuget Package Manager.

0
source share

It sounds trivial, but your missing links to system.xxxx may indicate a problem with the .NET Framework, which version you are using and whether it is installed correctly on your "faulty" machine. Perhaps it is worth reinstalling / repairing? I would check which versions are really referenced.

For NuGet, make sure Enable Package Recovery is set to:

enter image description here

In addition, I had a problem like this, and I had to upgrade the NuGet package manager to version 3 in ToolsExtensions and Updates (you need to uninstall and then reinstall because the update will not work)

enter image description here

Finally, if this does not work, check the package path in the File Explorer and delete all the packages. They should not be included in the original control, as this will load NuGet. If they are there or partially there, sometimes they will not download them.

0
source share

Check .NET version:

  • Open the project properties panel and check the target structure: enter image description here

  • Verify that this version of .NET is installed. OR change the target structure to a suitable version

0
source share

Before banging your head against a wall with millions of Nuget patches, you need to make sure that you get ALL the DLLs that are in your Bin folder under source control. For some reason, just “Get the latest version” is not enough. Visual Studio will continue to inform you that all files are updated, but apparently this does not mean that all files controlled by the source are downloaded (or this happens, and what happened to me is just a cheeky mistake). In any case, in order to make sure that you really “get everything”, you need to force update using the “Get specific version” command with the option “Overwrite all”, as indicated by VS. For this:

  • Go to the Bin folder in the source explorer (or in the we folder that you really want to get)

  • Right Click> Advanced> Get Specific Version

  • Check the box next to "Overwrite all files, even if the local version matches the specified version."

  • Click Get

By doing this, I ensured that all related DLL files were loaded from TFS, and for me this solved the problem. I am using Visual Studio Enterprise 2015.

0
source share

Go to TOOLS -> nuget package manager -> package manager console -> and start the console: UPDATE-PACKAGE -REINSTALL. Clear your decision, rebuild, and you are ready!

0
source share

All Articles