のためにMVC 6 ASP.NET 5ローカリゼーションの例を実行すると、しかし、警告ボックスが表示されます。は、私がここに<a href="https://github.com/damienbod/AspNet5Localization/tree/rc2" rel="nofollow">https://github.com/damienbod/AspNet5Localization/tree/rc2</a></p> <p>からAspNet5Localizationサンプルプロジェクトを実行しようとしていますDNXのRC2
DNX SDC version dnx-clr-win-x86.1.0.0-rc2-16444 is required by your solution but is not installed on this machine. Do you want to install it now? If you select No, 'dnx-clr-win-x86.1.0.0-rc1-update1' will be used as the solution DNX SDK version for this session.
私は「はい」を選択します。
はその後、別の情報ボックスが表示されます。
DNX SDK version dnx-clr-win-x86.1.0.0-rc2-16444 failed to install. The solution will use DNX SDK version dnx-clr-win-x86.1.0.0-rc1-update1 for this session.
私はDNX-CLR-WIN-x86.1.0.0-rc2-16357インストールされているので、私は1.0.0-に "Soltion DNX SDKのバージョン" に変更しますrc2-16357をプロジェクトプロパティから削除します。
Active Version Runtime Architecture OperatingSystem Alias
------ ------- ------- ------------ --------------- -----
1.0.0-rc1-update1 clr x64 win
1.0.0-rc1-update1 clr x86 win default
1.0.0-rc1-update1 coreclr x64 win
1.0.0-rc1-update1 coreclr x86 win
1.0.0-rc2-16357 clr x86 win
はしかし、関係なく、この変更は、パッケージを復元するために失敗しました。
私は次のエラーを参照してください。
System.ArgumentException: More than one runtime.json file has declared imports for 'win7-x86'
Parameter name: runtimeName
at Microsoft.Dnx.Tooling.RestoreCommand.FindRuntimeDependencies(String runtimeName, List`1 runtimeFiles, Dictionary`2 effectiveRuntimeSpecs, HashSet`1 allRuntimeNames, Func`2 circularImport)
at Microsoft.Dnx.Tooling.RestoreCommand.FindRuntimeDependencies(String runtimeName, List`1 runtimeFiles, Dictionary`2 effectiveRuntimeSpecs, HashSet`1 allRuntimeNames)
at Microsoft.Dnx.Tooling.RestoreCommand.<RestoreForProject>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dnx.Tooling.RestoreCommand.<>c__DisplayClass68_0.<<Execute>b__2>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Dnx.Tooling.RestoreCommand.<Execute>d__68.MoveNext()
----------
Restore failed
More than one runtime.json file has declared imports for 'win7-x86'
どのように私は、この例のプロジェクトをコンパイルして実行することができますか?
ショーン、精巧な答えをありがとう。私はあなたの指示を守っていて、 'dnu restore'で次のエラーでスタックしていました。' NotFound https://www.myget.org/F/aspnetcidev/api/v3/flatcontainer/remotion.linq/index.json見つけることができませんDependency Remotion.Linq> = 2.0.2'ここにはhttps:// www.myget.org/F/aspnetcidev/api/v3/flatcontainer/remotion.linq/index.jsonというものはないようです何かが壊れている? – feradz
Aha。はい。それらは私のNuGetローカルキャッシュにありました。もう一つのステップが必要です。これを私の答えに追加しました。 –
@feradz私はまた、 'AspNet5Localization'プロジェクトをビルドする前に' Localization.SqlLocalizer'をビルドする別のステップを追加しました。 –