msbuild v3.5 error - Could not load file or assembly 'Microsoft.Build.Engine'

I have upgrade our Build Server from Msbuild v2.0.50727 to v3.5. On attempting to build any project I get the following error (please see detailed output from msbuild in the "Code section".)

MSBUILD : error MSB1021: Cannot create an instance of the logger. Could not load file or assembly 'Microsoft.Build.Engine' or one of its dependencies. The system cannot find the file specified.

Is it because msbuild is attempting to use v2.0.50727 that we get the error below?
Note: VS 2008 builds the project without any errors.

C:\Program Files\CruiseControl.NET\server>msbuild sample.proj /p:Configuration=Debug /l:FileLogger,Microsoft.Build.Engine,verbosity=detailed;logfile=sample.Debug.log
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.3053]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
 
MSBUILD : error MSB1021: Cannot create an instance of the logger. Could not load file or assembly 'Microsoft.Build.Engine' or one of its dependencies. The system cannot find the file specified.

Open in new window

DasDirectorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DasDirectorAuthor Commented:
Note - I would like to mention that the projects builds in case I do not specify the logger option to msbuild. The problems happens in case I attempt to use the logger option, it seems in that case msbuild cannot resolve the file Microsoft.Build.engine.dll
I also noted that the .NET Reflector tool from Lutz cannot resolve the Microsoft.Build.engine.dll automatically for msbuild v3.5.
0
DasDirectorAuthor Commented:
I believe that I corrected this problem as follows - I copied msbuild.exe and msbuild.exe.config from the windows\framwork folder to \Program Files\Reference Assemblies\Microsoft\Framework\v3.5.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.