C#Visual Studio 2013プロジェクトでRestSharp
を使用して、特定のURLにデータをPOSTしようとしています。これは主に私はアイデアをしています.NetPortable
フレームワークの問題である限り、私はGitHubで読んだことがあるようVisual Studio 2013でRestSharpをインストールする際の問題
Installing 'RestSharp 106.1.0'.
Successfully installed 'RestSharp 106.1.0'.
Adding 'RestSharp 106.1.0' to WebApplicationJson.
Uninstalling 'RestSharp 106.1.0'.
Successfully uninstalled 'RestSharp 106.1.0'.
Install failed. Rolling back...
Could not install package 'RestSharp 106.1.0'. 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.
:私はNuGet経由でパッケージをインストールしようとすると、それは私に、次のエラーが発生します。私はフレームワークのバージョンを3.5に変更しようとしましたが、それと同じエラーです。
誰も同じような問題が発生しましたか?
さらに詳しい情報が必要な場合は、コメントしてください。
ちょうど.netフレームワークのバージョンを4.5.2に更新した可能性があります。 – phuzi
@phuzi .netフレームワークのバージョン3.5から4.5.1を試してみましたが、それは何の関係もないと思いました。 RestSharpのバージョン106.0.1はバージョン103.1.0と大きく異なるのですか? – Noel
バージョン間でどれほどの違いがあるか分かりませんが(nuget.orgのバージョン106.1.0)[https://www.nuget.org/packages/RestSharp/106.1.0]は4.5.2のフレームワークの依存性を示しています。 (バージョン103.1.0)[https://www.nuget.org/packages/RestSharp/103.1.0]は依存関係を示していません。この変更はおそらく.Net Standard 2.0をサポートするためのものだった。.Net Core – phuzi