In 2023, I launched a brand-new version of my free tool for developers known as the Spargine Dev Tool. One of its key features, which I personally rely on daily, is the ‘backup‘ command. This command efficiently scans your system for source code and swiftly creates backups. I initially developed this command in 2016 due to my past experiences of using source control programs that occasionally led to the loss of my code in progress.
If you haven’t installed the Spargine Dev Tool yet, you can easily do so by opening a command window and typing:
dotnet tool install --global dotNetTips.Spargine.Dev.Tool
If you have installed the tool, update it by running this command:
dotnet tool update --global dotNetTips.Spargine.Dev.Tool
To provide an added layer of protection against source code loss, the Spargine Dev Tool now offers the convenience of being called directly from a build event in Visual Studio! Follow these steps to configure it:
- Open the properties of your project in Visual Studio.
- Navigate to the Build section.
- Select Events.
- In the Pre-build event, add the command ‘
spargine backup --turbo‘ as shown below:
If your solution has more than one project, add this command to only one of the projects. By incorporating this command into the Pre-build event, your source code will be automatically backed up before each build, ensuring that you never lose any crucial work. Easy!
Summary
I trust that the Spargine Dev Tool will prove valuable to you and your team, just as it has been for me on a daily basis! If you have any feature suggestions or encounter any issues with the tool, please don’t hesitate to reach out. Feel free to email me at dotNetDave@live.com. Your feedback is highly appreciated, and I’m committed to continuously improving the tool based on user input.
Happy Coding Geeks!
Pick up any books by David McCarter by going to Amazon.com: http://bit.ly/RockYourCodeBooks
Make a one-time donation
Make a monthly donation
Make a yearly donation
Choose an amount
Or enter a custom amount
Your contribution is appreciated.
Your contribution is appreciated.
Your contribution is appreciated.
DonateDonate monthlyDonate yearlyIf you liked this article, please buy David a cup of Coffee by going here: https://www.buymeacoffee.com/dotnetdave
© The information in this article is copywritten and cannot be preproduced in any way without express permission from David McCarter.
Discover more from dotNetTips.com
Subscribe to get the latest posts sent to your email.


One thought on “Spargine Dev Tool: Never Lose Source Code Ever Again!”