TeamCityでアプリケーションをビルドするときに何らかの理由で、 "System.Runtime 4.0.20"をインストールしようとしています。Nuget Package Restore:.Net Version Error on Target
私は次のエラーを取得:それはパッケージを追加することを主張している理由私は理解できない
[update] WARNING: Package 'System.Runtime 4.0.20' does not exist in project 'AkkaNeat.Tests.csproj' [20:04:08][update] Removed package 'System.Resources.ResourceManager 4.0.0' from 'packages.config' [20:04:08][update] Removed package 'System.Linq 4.0.0' from 'packages.config' [20:04:08][update] For adding package 'System.Runtime 4.0.10' to project 'AkkaNeat.Tests.csproj' that targets 'net45'. [20:04:08][update] Could not install package 'System.Runtime 4.0.20'. 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. [20:04:08][update] Process exited with code 1 [20:04:09][Step 2/4] Step Restore NuGet packages (NuGet Installer) failed
を。 XamarinとVisual Studioの両方で、すべてのエージェントマシンが正常に構築されます。
私はこれを理解しようとして2日を過ごしました。私は、System.Runtimeの別のバージョンへの参照をpackages.jsonファイルに明示的に追加しようとしました。 Nugetはまだ指定されたバージョンを主張している。
ありがとう。私は最終的にあなたの答えの助けを借りてそれを働かせました。 :) –
あなたは歓迎です:) –