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

System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'dotnet' with working directory #179

Open
golesmn opened this issue Aug 13, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@golesmn
Copy link

golesmn commented Aug 13, 2023

When I use the ui tool for creating migrations and updating the db it says System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'dotnet' with working directory.It works when I execute the same command from the terminal. I am currently on ubuntu 22.04

To Reproduce

Steps to reproduce the behavior:

  1. Go to UI tools ''
  2. Click on Update or Add migrations

Expected behavior

I wanted the migrations to run or make migrations but it is not happening using the tool but I can do that from the terminal

Screenshots

image

Environment :

  • OS: Ubuntu 22.04

  • .NET SDK info (installed ones and version used within Rider): 6.0.408

  • Plugin version: 232.0.0-rc1

  • Rider version: 2023.2

@golesmn golesmn added the bug Something isn't working label Aug 13, 2023
@seclerp
Copy link
Member

seclerp commented Aug 22, 2023

Hi @golesmn , thanks for the ticket. Please share your dialog setup before executing the command. Also, please uncheck "No build" checkbox, it should not be used unintentionally.

@seclerp
Copy link
Member

seclerp commented Aug 22, 2023

And also please share your solution layout. Where your .csproj files are located?

@golesmn
Copy link
Author

golesmn commented Aug 22, 2023

And also please share your solution layout. Where your .csproj files are located?

image

and the popup is like this
image

@seclerp
Copy link
Member

seclerp commented Aug 22, 2023

When you click "Preview", which "Working directory" is shown?

@golesmn
Copy link
Author

golesmn commented Aug 23, 2023

When you click "Preview", which "Working directory" is shown?

working directory is correct. It is same as the working directory where the csproj and solution are located.

@haas-daniel
Copy link

I have the same problem. The command works if I run it manually from terminal window.

OS: Linux Mint 21.2
.NET SDK: 7.0.404
Rider: 2023.3 EAP7

@YaqubAliy02
Copy link

how to fix this problem pleasehelp me, when I add migrate I faced error like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants