How to explicitly enable or disable C# unit tests in Microsoft Visual Studio 2010

If you want to enable or disable unit tests in Microsoft Visual Studio 2010, you can use the “Ignore” attribute. This can be used to ignore ore exclude integration tests in a nightly continuous integration build. using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Rvl.Demo.Test { [TestClass] …

PowerShell function to build a Microsoft Visual Studio setup project from command line with devenv.exe

If you want to build you’re Microsoft Visual Studio 2010 setup project in release mode, from the command line, you can use the following PowerShell function: function RebuildSubsystem([string]$solutionPath, [string]$projectPath, [string]$devEnvPath) {     $parameters = "/Rebuild Release ""$solutionPath"" /Project ""$projectPath"" /ProjectConfig Release"     "Process to start [$devEnvPath $parameters]"     $process = …