Showing posts from May, 2010

ASP.NET MVC and MSBuild via Command-Line

I struggled with this one for a couple hours & wanted to post some help. I'm trying to move towards better deployment processes. I'd like to use TeamCity but until then, command-line will do. It's how I roll anyways. When I first ran MSBuild on my ASP.NET MVC CSPROJ file I got the following error: C:\Projects\MvcApplication.WebUI>msbuild /p:Configuration=Debug MvcApplication.csproj Microsoft (R) Build Engine Version 2.0.50727.3053 [Microsoft .NET Framework, Version 2.0.50727.3603] Copyright (C) Microsoft Corporation 2005. All rights reserved. Build started 5/18/2010 9:27:29 PM. __________________________________________________ Project "C:\Projects\MvcApplication.WebUI\MvcApplication.csproj" (default targets): Target ResolveProjectReferences: C:\Projects\Assembly.csproj(200,11): error MSB4019: The imported project "C:\Microsoft .CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exist