
Description
Command:
dotnet run --property:Configuration=Release
Creates ./bin/Release/ ...
But then tries to execute debug version "bin/Debug/net6.0/main":
System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/home/pepe/code/pepe78/python-performance/bin/Debug/net6.0/main' with working directory '/home/pepe/code/pepe78/python-performance'. No such file or directory
at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.DotNet.Cli.Utils.Command.Execute(Action`1 processStarted)
at Microsoft.DotNet.Cli.Utils.Command.Execute()
at Microsoft.DotNet.Tools.Run.RunCommand.Execute()
at Microsoft.DotNet.Tools.Run.RunCommand.Run(String[] args)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
Steps to repro:
- git clone https://github.com/pepe78/python-performance
- cd python-performance
- wget https://download.visualstudio.microsoft.com/download/pr/807f9d72-4940-4b1a-aa4a-8dbb0f73f5d7/cb666c22a87bf9413f29615e0ba94500/dotnet-sdk-6.0.200-linux-x64.tar.gz
- mkdir -p $HOME/dotnet
- tar zxf dotnet-sdk-6.0.200-linux-x64.tar.gz -C $HOME/dotnet
- export DOTNET_ROOT=$HOME/dotnet
- export PATH=$PATH:$HOME/dotnet
- dotnet run --property:Configuration=Release
On Linux Ubuntu 20 & 22 with SDK 6.0.