用Embarcadero xe2的空工程,編譯時出現如下錯誤:
[MSBuild Error] The "CreateItem" task could not be instantiated from the assembly "Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'Microsoft.Build.Tasks.CreateItem' to type 'Microsoft.Build.Framework.ITask'.
不知道該怎么解決,謝謝!
uj5u.com熱心網友回復:
重新創建個新的空工程試試~!uj5u.com熱心網友回復:
安裝完了之后就是這樣,新的空工程也不行。是不是得重裝了?uj5u.com熱心網友回復:
我也出現了跟你類似的錯誤。我的是:the "CreateProperty" task could not be instantiated from the assembly "Microsoft.Build.Tasks, ....
懷疑是.net的問題。我之前還裝過bds 2007,不知道是不是跟這個有關。你呢?
uj5u.com熱心網友回復:
我也出現了跟你類似的錯誤。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/156843.html
標籤:基礎類
