Building VSCmdShell
We recently made some changes to the build configurations for VSCmdShell. To build the Debug configuration, no additional tools are required. This way you can build and experiment with the source code more easily. The Debug configuration does not build test projects.If you wish to contribute changes to the VSCmdShell project, you must build the Debug-Test, FxCop-Release and Release configurations. You will need to use the tools and procedures described below to build those configurations:VSCmdShell requires additional tools to be installed in order to build:
- Code analysis is performed by FxCop 1.35 RC 1, which is available at http://www.gotdotnet.com/team/fxcop/
- Unit tests are developed and run using NUnit 2.2.7, which is available at http://www.nunit.org
- The installer is built with WiX 2.0.3719, which is available at http://sourceforge.net/projects/wix/
- Building VSCmdShell requires Microsoft PowerShell, which is available at http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx
Step 0: Download the tools listed above.
Step 1: Download the latest sources on the
Source Code pageStep 2: Open the VSCmdShell.Settings.targets file. This file is located in the solution directory.
You will find the following tags for each of the tools listed above:
<FxCopExtDir> </FxCopExtDir>
<NUnitDir> </NUnitDir>
<WiXDir> </WiXDir>
Step 3: Set these properties to the tools' installation directories.
Be sure to include a trailing slash in each path.For example:
<WiXDir>C:\tools\WiX\2.0.3719\</WiXDir>
Step 4: Close and reopen the solution, when inside the VS IDE, to pick up the new tool locations.
Step 5:Build.
Once solution is successfully built, MSI package will be placed under CommandShell\VSCmdShell Installer directory.