Just got this error when trying to invoke MSBUILD from the VS2005 command prompt.
MSBUILD : warning MSB4056: The MSBuild engine must be called on a single-threaded-apartment.
Current threading model is "MTA". Proceeding, but some tasks may not function correctly.
It was working fine, and I have no idea what changed. I retried it and it worked fine the second time....odd