Может ли кто-нибудь помочь мне разобраться, как настроить модульные тесты с помощью «dotnet» в ubuntu? Теперь, когда dnx и dnu были заменены dotnet, я столкнулся с проблемами.Почему «dotnet test» терпит неудачу на ubuntu LTS 14.04?
У меня есть project.json
файл со следующим содержимым:
{
"version": "1.0.0-*",
"compilationOptions": {
"emitEntryPoint": false
},
"dependencies": {
"Microsoft.NETCore.Runtime": "1.0.1-beta-*",
"xunit": "2.1.0-*",
"xunit.runner.dnx": "2.1.0-*"
},
"commands": {
"test": "xunit.runner.dnx"
},
"frameworks": {
"dnxcore50": { }
}
}
я столкнуться с проблемами при запуске этой команды:
dotnet test
И следующее выплюнуть:
dotnet-test Error: 0 : System.DllNotFoundException: Unable to load DLL 'api-ms-win-core-localization-l1-2-0.dll': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at Interop.mincore.FormatMessage(Int32 dwFlags, IntPtr lpSource_mustBeNull, UInt32 dwMessageId, Int32 dwLanguageId, StringBuilder lpBuffer, Int32 nSize, IntPtr[] arguments)
at Interop.mincore.TryGetErrorMessage(Int32 errorCode, StringBuilder sb, String& errorMsg)
at Interop.mincore.GetMessage(Int32 errorCode)
at System.Diagnostics.Process.ResolvePath(String filename)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at Microsoft.DotNet.Cli.Utils.Command.Execute()
at Microsoft.DotNet.Tools.Test.Program.RunConsole(ProjectContext projectContext, CommandLineApplication app, String testRunner)
at Microsoft.DotNet.Tools.Test.Program.<>c__DisplayClass0_0.<Main>b__0()
Любая помощь будет принята с благодарностью.