简体   繁体   中英

Could not load file or assembly 'Microsoft.Build'

When I am trying to build my solution I am getting below error. I have tried installing it in GAC but still getting this error

Error 2 Could not load file or assembly 'Microsoft.Build' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

other Info : VS2008, .Net 3.5 , Win 7 64 bit

For such issues the easiest way is to attach to the failing process and check the original issue causing the error. Just make sure that all exceptions are catched once they're thrown (in Exceptions Dialog).

Also good thing to troobleshot such issues is Assembly Binding Log Viewer

Here is manual https://msdn.microsoft.com/en-us/library/e74a18c4(v=vs.110).aspx Here is good article: http://blogs.msdn.com/b/suzcook/archive/2003/05/29/57120.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM