出現以下錯誤訊息表示你的專案設定的環境與實際環境不相匹配,找不到對應的工具。

Error    1    error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...".    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets    64    5    ShowBMP

 

 

解決方法如下


 

可以看到目前設定的版本尚未安裝。(v140 為vs2015)

將項目選為目前已安裝得即可。

 

arrow
arrow
    文章標籤
    .net debug
    全站熱搜

    Lung-Yu,Tsai 發表在 痞客邦 留言(0) 人氣()