Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using Visual Studio 2010.

I have files that make up a project in TFS. They are not in a VS project, they are just loose files. I pull them from source control to my machine and then created a new project in the root of the files. I've included all the files in the project. My question is how do I connect my project to the existing files in source control? Right now there are no bindings inside my newly created project.

share|improve this question
    
You should probably post this on Stack Overflow –  leaf68 Aug 7 '12 at 17:24

1 Answer 1

up vote 1 down vote accepted

Firstly, add your project to source control, then go to Solution Explorer, right-click and choose Add | Existing Item, then browse to the files you want to add.

Notice that you have the option to add the file as a link. The way that works is that if you add the file then VS moves the file to the project's location, thus creating a second copy of the file - which is probably not what you want. If you add the file as a link then the file remains in its location and is not moved.

add existing files

share|improve this answer
    
Hi, thanks for the response. The files are already in source control. What I am trying to do is create a project in Visual Studio, add the files pulled from source control to the project and then bind the project to source control. All the files are already in source control they are just not part of a project. –  TheMethod Aug 8 '12 at 13:12
1  
Yes, didn't read your question properly the first time. Have edited the answer, hope that helps. –  Sean Kearon Aug 10 '12 at 7:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.