C# Sample programs and utilities.

Printer-friendly versionPDF version

A collection of some of the utilities and sample programs written in C#, while learning the intricacies of the language.

BuildVerInc: VC++ resource files

This program increments the build version of your software automatically, every time you build your software, using Visual Studio. This will help you to differentiate between various build of your program. It helps QA to identify the exact build, which causes the problem, without the developer doing any extra coding to change the build number of the program.

Usage instructions for Visual Studio 2005:

  • Open the "Build Events" from the Project -> Properties Dialog.
  • Change the configuration to "Release" mode.
  • Choose the "Post-Build Event".
  • In the Command Line text box, write "BuildVerInc.exe $(ProjectDir)$(ProjectName).rc"
  • In the Description text box, write "Auto Build Version Increment".
  • Copy the BuildVerInc.exe to your project path, and make sure the $(ProjectName).rc file resides there.

ScreenSaver

Usage instructions:

  • Copy the "ScreenSaver.scr" file to the %system32% (C:\WINDOWS\system32) directory.
  • From the "Display Properties", you can set the screensaver from the "Screen Saver" tab.



AttachmentSize
buildverinc.7z12.5 KB
screensaver.7z76.08 KB