I normally build my solution with MSBuild in order to keep Visual Studio responsive and save a bit of time. Right now, what I run at the command line is very simple:
MSBuild.exe /m "C:\MyProject\MyProject.sln"
Up until now, this has worked just fine. However, today I added a class to a class library project whose DLL is loaded via reflection in my app, and I couldn't create an object of the new class. I looked in the debugger at the types contained in the DLL that I had loaded, and my new type wasn't present. I got the same results with Reflector.
When I finally went back to the IDE, right clicked on the project, and chose "Rebuild", my new type showed up in Reflector.
Is there some setting or command line flag I can set in MSBuild to make sure that new changes are caught every time?