NuGet logo

NuGet Package Restore problems

I was having some trouble with a new solution, I had added a few NuGet packages to various projects, and everything was working. I checked it into TFS and asked a colleague to review the code.
He got the code out of TFS and tried to run it, but ran into some problems, because not all of the NuGet packages had been restored. I had enabled the “Restore NuGet Packages on build” option, so I was a bit stumped.

After some investigation I discovered the problem. I had checked in the packages folder in the route of the solution. This obviously becomes write-protected, and interferes with the package restore. I closed the solution, removed the packages folder from source control, and reopened the solution and rebuilt. All the packages were downloaded and the solution ran without issue.

Microsoft ALM

I was very impressed overall by the latest product suite and the improvements to our workflow it would enable.

While we as the web development team already use TFS for version control, and are starting to look at it for user stories and task tracking, the possibilities of having it manage all the complete workflow from requirements and specifications, through the development process, then testing, and finally the release process. Keeping the requirements linked to the tasks, the source code, and the tests.

 Let’s hope we can start using this fully in the near future.

How to delete a project from Team Foundation Service using the GUI

As a follow up to my previous post about deleting a project from TFS, there is now an easier way.

  1. Go to the project Home Page on TFS.
  2. Click on the Gear icon on the upper right corner, this will open the admin page.
  3. Click on DefaultCollection in the breadcrumb navigation at the top of the page. This will show you a list of all your projects.
  4. When you hover over a project, a little drop down arrow appears to the left. Click on that will show you the option to delete the project.
  5. This will remove everything, there is no going back. Think Twice. Check you are on the right project.

How to delete a project from Team Foundation Service

Open a command window, and type the following:

c:\tfsdeleteproject /collection:https://<Account> <ProjectName>

Replacing <Account> with your TFS account name, and <ProjectName> with the name of the project you wish to delete.

You can find more details here: