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

dotnet run should facilitate acquisition of the Core Tools #2976

Open
mattchenderson opened this issue Mar 4, 2025 · 0 comments
Open

dotnet run should facilitate acquisition of the Core Tools #2976

mattchenderson opened this issue Mar 4, 2025 · 0 comments
Labels

Comments

@mattchenderson
Copy link
Contributor

Description

If the Core Tools is not installed, dotnet run will fail with an exception similar to the following:

Unhandled exception: System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'func' with working directory 'bin\Debug\net9.0'. The system cannot find the file specified.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Microsoft.DotNet.Cli.Utils.Command.Execute(Action`1 processStarted)
at Microsoft.DotNet.Tools.Run.RunCommand.Execute()
at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)
at System.CommandLine.ParseResult.Invoke()
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)

This is not clearly actionable for the user. When we are in this situation, we should provide clear instructions on how to acquire the Core Tools.

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

No branches or pull requests

1 participant