Skip to content

OSX 10.13 DOTNET RUN System.ComponentModel.Win32Exception (0x80004005): No such file or directory  #1119

@fbarletta

Description

@fbarletta

When executing dotnet run -c release in my terminal on OSX 10.13, I get the following error:

../../Properties/launchSettings.json... System.ComponentModel.Win32Exception (0x80004005): No such file or directory at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at Microsoft.DotNet.Cli.Utils.Command.Execute() at Microsoft.DotNet.Tools.Run.RunCommand.Start() at Microsoft.DotNet.Tools.Run.RunCommand.Run(String[] args) at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient) at Microsoft.DotNet.Cli.Program.Main(String[] args)

.NET Command Line Tools (2.2.0-preview1-007582)

Product Information:
Version: 2.2.0-preview1-007582
Commit SHA-1 hash: 4845efe2ea

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.13
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/2.2.0-preview1-007582/

Microsoft .NET Core Shared Framework Host

Version : 2.1.0-preview1-25919-02
Build : 96a1025de48784825ac61e45ece24a4343e0bf01

The runtime identifier is set for <RuntimeIdentifier>osx.10.12-x64</RuntimeIdentifier> or osx-x64 as directed on the Microsoft documents.
The project works on Windows 10, just not on any OSX device.
The launchSettings.json file does exist. If I copy and nano the file, it will edit the file. I'm out of ideas right now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions