Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run using 0.9.3-beta (DNX 5.0) #127

Closed
rold2007 opened this issue Mar 23, 2016 · 5 comments
Closed

Unable to run using 0.9.3-beta (DNX 5.0) #127

rold2007 opened this issue Mar 23, 2016 · 5 comments

Comments

@rold2007
Copy link

I tried to use the beta version of BenchmarkDotNet using DNX but it doesn't work even on the most basic example. Here is my sample code: ConsoleApp.zip

When I run it I have the following exception:
System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at BenchmarkDotNet.Toolchains.DotNetCli.DotNetCliBuilder.ExecuteCommand(String commandWithArguments, String workingDirectory, ILogger logger)
at BenchmarkDotNet.Toolchains.DotNetCli.DotNetCliBuilder.Build(GenerateResult generateResult, ILogger logger, Benchmark benchmark)
at BenchmarkDotNet.Running.BenchmarkRunner.Build(ILogger logger, IToolchain toolchain, GenerateResult generateResult, Benchmark benchmark)
at BenchmarkDotNet.Running.BenchmarkRunner.Run(Benchmark benchmark, ILogger logger, IConfig config)
at BenchmarkDotNet.Running.BenchmarkRunner.Run(IList1 benchmarks, ILogger logger, String title, IConfig config) at BenchmarkDotNet.Running.BenchmarkRunner.Run(IList1 benchmarks, IConfig config)
at BenchmarkDotNet.Running.BenchmarkRunner.Run[T](IConfig config)
at ConsoleApp1.Program.Main(String[] args) in c:\users\david\documents\visual studio 2015\Projects\ConsoleApp1\Program.cs:line 15
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider)
at Microsoft.Dnx.ApplicationHost.Program.<>c__DisplayClass3_0.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

I tried to compile BenchmarkDotNet in debug to see what was the problem but then I get a different exception which seems to be related to a missing assembly: System.Runtime.InteropServices.PInvoke.

DNX is pretty new to me so maybe I'm doing something wrong.

@adamsitnik
Copy link
Member

Hi @rold2007 Do you have dotnet cli toolchain installed?

@adamsitnik adamsitnik self-assigned this Mar 23, 2016
@AndreyAkinshin
Copy link
Member

@adamsitnik, can we detect a situation when user doesn't have installed dotnet cli and print warning?

@adamsitnik
Copy link
Member

@AndreyAkinshin sure, I will implement this

@rold2007
Copy link
Author

Thanks for your help, now it works !
If anyone has the same problem, just follow the instruction here.

@adamsitnik
Copy link
Member

@rold2007 You welcome! I am very happy that you use it, you are proably one of the first people that use dnxcore50 support! Please let me know if you have any troubles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants