Add Windows Powershell Folders to Team Foundation Server

David Johnson, CD
David Johnson, CD used Ask the Experts™
on
I have both an on premises and a Visual Studio Online Team Foundation Server and I'd like to add my documents\WindowsPowershell folders to source control and I have no idea of how to do this.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Author

Commented:
I did try creating a blank project pointing to ..\documents\windowspowershell in Visual Studio 2015 and have it connected to source control but VS2015 has been giving me an hourglass for 2 hours so far
Most Valuable Expert 2013
Awarded 2012
Commented:
Hi,
these are the steps I did:
1. Create a new TFS project
2. Open that one in Visual Studio (from the web site)
3. Created a new folder named "Powershell" under the Project in Source Control Explorer
4. Set the local path mapping of this folder (not the project) to "D:\Powershell" (you might want to chose your path here)
5. Then right click on the folder in solution explorer and "Add items to this folder" and you should get the list of all files which are currently already in your local folder
6. Checkin

HTH
Rainer
Top Expert 2016

Author

Commented:
which type of project? Scrum/Agile?
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Top Expert 2016

Author

Commented:
Thank you currently adding 120,000 items
Most Valuable Expert 2013
Awarded 2012

Commented:
Hi,
the type should not really matter if you do not plan to create a "real" development project.

120.000?
You should share them at GitHub - would just take a couple of years to review them all :-)
Top Expert 2016

Author

Commented:
I used github for a while except that it was never up to date as the source location was x:\documents\github\windowspowershell and not x:\documents\windowspowershell so I had to setup tasks to copy frm my source location to the github source location and then remember to check in/sync

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial