I made some scripts in the past 2 weeks and I realised this week, I have a problem of keeping version of it. So I do some search and I found this article : Protect Your PowerShell Scripts with Version Control
This saves my life... :)
Now I can keep version of my script. But here some tricks and infos I found when I configure it :
- Yes, that's worked with the free version of Visual Studio. I used VS Community 2013.
- If you used VS 2013, you need to install Team Explorer for Visual Studio 2013.
- Don't forget to create your Visual Studio Online Account
- For VS 2013, you need to install : Microsoft Visual Studio Team Foundation Server 2013 Power Tools
- In the article, they use PowerShell commands to manage the version and the files. If you're beginner with that, like me, I preferred the visual interface to manage my files and do my check in.
Visual Studio 2013 - Team Explorer - Don't forget to add comments for each check in. That's helped a lot when you want to retrace a version.
- Have fun to explore all options you can do with the TFS and Visual Studio.
- You can install PowerShell Tools for Visual Studio. That's allow you to script PowerShell directly in Visual Studio. (I tried it, but I still emotionally attached to my ISE.)
I hope this can help you to start keeping versions of your scripts.
Please, feel free to leave comments.
J.
No comments:
Post a Comment