FluentValidationをasp.netコアプロジェクトに追加しようとしていました。 元はNuget FluentValidation.AspNetCore/6.4.0-beta9を使いたいと思います。このパックはNuget FluentValidation/6.4.0-beta9に依存しています。そこで、私はFluentValidationをproject.jsonに追加しました。FluentValidation 6.4.0-beta * Nugetパッケージの復元に失敗しました。操作がタイムアウトしました
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.1",
"type": "platform"
},
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.Routing": "1.0.1",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.Extensions.Logging": "1.0.0",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.Extensions.Logging.Debug": "1.0.0",
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
...,
"FluentValidation": "6.4.0-beta9"
},
....
}
この結果、次の出力のパッケージの復元に失敗しました。
log : Restoring packages for C:\Users\asdf\devel\BTnetCorePoc\NcCqrsPoc\src\NcCqrsPos.Web.Commands\project.json...
log : Retrying 'FindPackagesByIdAsyncCore' for source 'http://10.0.10.49/NugetServer/nuget_error/FindPackagesById()?id='FluentValidation''.
log : An error occurred while sending the request.
log : The operation timed out
log : Retrying 'FindPackagesByIdAsyncCore' for source 'http://10.0.10.49/NugetServer/nuget_error/FindPackagesById()?id='System.Text.RegularExpressions''.
log : An error occurred while sending the request.
log : The operation timed out
....
error: Failed to retrieve information from remote source 'http://10.0.10.49/NugetServer/nuget_error/FindPackagesById()?id='FluentValidation''.
error: An error occurred while sending the request.
error: Failed to retrieve information from remote source 'http://10.0.10.49/NugetServer/nuget_error/FindPackagesById()?id='System.Text.RegularExpressions''.
error: An error occurred while sending the request.
このように、どのような種類のTimeOutが発生しても、Nugetパッケージの公開の仕組みはよく分かりません。タイムアウトは、サーバーが利用できないかsthのように見えますが、上にリンクされている上記のナゲットパッケージのページはうまく機能しました(ですが、それは単なるインデックスページです)。そして、ip 10.0.10.49は、パッケージを復元するためにipとなっているようです。私はおそらく、vs Studioでナゲットのソースパスを設定していないのでしょうか? (この質問を書いている間私を覚えていますが、後でチェックします)
FluentValidation.AspNetCoreを使用するには、少なくともFluentValidation 6.4.0-beta1のバージョンが必要です。だから私は(私は目標)
FluentValidation 6.4.0-beta1のにFluentValidation 6.4.0-beta9
のためのほとんどのバージョンを試してみましたが、すべての同じタイムアウトエラーとfailesを試してみてください(タイムアウトのbecuzそれはいくつかを取ります分、私は)FluentValidation.AspNetCoreは少なくともFluentValiedation 6.4.0-β1を必要とする(私が使用してカントFluentValidation の以前のバージョンを復元しようとしていたその後
)、どのようにハードストップに復元処理を知りません、古いと安定したFluentValidationでnugetの復元が機能するかどうかを確認しました。私は、以下のバージョンを試してみました:
FluentValidation 6.2.1 (最新の安定版) FluentValidation 6.2.1-β1
FluentValidation 6.3.3-α
FluentValidation 6.3.4-α
これらのバージョンの作品を復元よく私はエラーが私のマシン上のミス構成のVSのいずれかの種類になることはできないと思う。どこに問題があるのでしょうか?私の次のステップは何でしょうか?私はFluentValidation Github Repo Issueを作成しました。