2016-07-25 110 views
1

我正在嘗試將Microsoft Bot Builder nuGet包安裝到一個面向.NET框架4.5的項目中。當我點擊安裝,我得到以下錯誤:微軟Bot Builder與.NET 4.5?

Could not install package 'Microsoft.Bot.Builder 3.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

有機器人生成器包與.NET 4.5版本兼容任何版本的?還是我運氣不好,不得不改變我的應用程序的目標框架?

+1

你必須瞄準4.6才能保持開心。我想你可以檢索一箇舊版本的軟件包。嗯。 –

回答

2

支持4.5的框架的最後一個版本是1.1.0,在該版本之後,框架只針對.NET 4.6。

你可以命令

Install-Package Microsoft.Bot.Builder -Version 1.1.0 

,這將安裝該版本,或者你可以改變你的項目中使用.NET 4.6,或compile it from source,看看你能得到它在.NET 4.5編譯。