Skip to content

Instantly share code, notes, and snippets.

@kevinblake
Created December 10, 2012 09:53
Show Gist options
  • Save kevinblake/4249668 to your computer and use it in GitHub Desktop.
Save kevinblake/4249668 to your computer and use it in GitHub Desktop.
Run .NET solution without Visual Studio
SET PORT=8086
SET SOLUTIONNAME=VS.Solution.Filename.sln
SET WEBDIRECTORY=VS.Solution.Web.WorkingDirectory
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild %CD%\%SOLUTIONNAME%
start "IIS Express %PORT% (%SOLUTIONNAME%)" "%PROGRAMFILES%\IIS Express\iisexpress" /path:%CD%\%WEBDIRECTORY% /port:%PORT%
start "" "http://localhost:%PORT%/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment