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.
As a follow up to my previous post about deleting a project from TFS, there is now an easier way.
- Go to the project Home Page on TFS.
- Click on the Gear icon on the upper right corner, this will open the admin page.
- Click on DefaultCollection in the breadcrumb navigation at the top of the page. This will show you a list of all your projects.
- 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.
- This will remove everything, there is no going back. Think Twice. Check you are on the right project.
Open a command window, and type the following:
c:\tfsdeleteproject /collection:https://<Account>.visualstudio.com/DefaultCollection <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: http://blogs.msdn.com/b/buckh/archive/2011/09/19/how-to-delete-a-team-project-from-tfs-on-azure.aspx
I’ve been using the new Team Foundation Service inside VS2012 for a new project I’ve been working on. I found it really easy to set up and run, I’m using it for Source Control and Continuous Integration, and when the project reaches the deployment stage, for Continuous Deployment too.