Posts

Showing posts with the label development

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 exists on...

How to Troubleshoot a Problem

Building computers early on in life was an invaluable experience. Fighting with mobos & hunting for drivers taught me more about software development (& customer support) than hardware. I've been trying to summarize those lessons into an easy framework for debugging, troubleshooting and fighting most problems. Below is just what I have so far. Hopefully it's useful in some way. 1) Don't Panic - if this sounds familiar, congrats, you're a geek. You have to be calm & stop freaking out to be of any use. Someone going ape shit in your face is the fastest way to stop your brain from working. So take a moment, read Zen Habits and just chill for a second. 2) Identify the Problem - before doing anything, ANYTHING, you must figure out what's going wrong. Is the page not displaying? Is an error appearing? What's in the stack trace? What is happening that shouldn't be? 3/10 times you will stop here because nothing is wrong at all. Someone wa...