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

[wasm] dotnet run doesn't work for relative path #76609

Closed
pavelsavara opened this issue Oct 4, 2022 · 5 comments
Closed

[wasm] dotnet run doesn't work for relative path #76609

pavelsavara opened this issue Oct 4, 2022 · 5 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Build-mono needs-author-action An issue or pull request that requires more info or actions from the author.
Milestone

Comments

@pavelsavara
Copy link
Member

pavelsavara commented Oct 4, 2022

Description

dotnet run doesn't work for relative path to project file

Reproduction Steps

  • pull dotnet-wasm-todo-mvc sample
  • move the project into src folder
  • run C:\Dev\dotnet-wasm-todo-mvc>dotnet run --project src\TodoMVC.csproj

Expected behavior

it should be C:\Dev\dotnet-wasm-todo-mvc\src\bin\Debug\net7.0\browser-wasm\AppBundle\

Actual behavior

fails with An error occurred trying to start process 'dotnet' with working directory 'C:\Dev\dotnet-wasm-todo-mvc\bin\Debug\net7.0\browser-wasm\AppBundle\'. The directory name is invalid.

Regression?

no

Known Workarounds

step into src diretory

Configuration

NET7 RC1

Other information

No response

@pavelsavara pavelsavara added the arch-wasm WebAssembly architecture label Oct 4, 2022
@pavelsavara pavelsavara added this to the 7.0.0 milestone Oct 4, 2022
@ghost
Copy link

ghost commented Oct 4, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

dotnet run doesn't work for relative path to project file

Reproduction Steps

C:\Dev\dotnet-wasm-todo-mvc>dotnet run --project src\TodoMVC.csproj

fails with An error occurred trying to start process 'dotnet' with working directory 'C:\Dev\dotnet-wasm-todo-mvc\bin\Debug\net7.0\browser-wasm\AppBundle\'. The directory name is invalid.

Expected behavior

it should be `C:\Dev\dotnet-wasm-todo-mvc\src\bin\Debug\net7.0\browser-wasm\AppBundle'

Actual behavior

`C:\Dev\dotnet-wasm-todo-mvc\bin\Debug\net7.0\browser-wasm\AppBundle'

Regression?

no

Known Workarounds

step into src diretory

Configuration

No response

Other information

No response

Author: pavelsavara
Assignees: -
Labels:

arch-wasm

Milestone: 7.0.0

@pavelsavara
Copy link
Member Author

cc @radical

@radical radical self-assigned this Oct 4, 2022
@radical
Copy link
Member

radical commented Oct 5, 2022

@pavelsavara which version are you using? The fix for this was backported to release/7.0 in #75508 .

@radical radical added the needs-author-action An issue or pull request that requires more info or actions from the author. label Oct 5, 2022
@ghost
Copy link

ghost commented Oct 5, 2022

This issue has been marked needs-author-action and may be missing some important information.

@pavelsavara
Copy link
Member Author

7.0.0-rc.1.22427.1 so this is RC1.
And I also tested that applying the fix helps. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Nov 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Build-mono needs-author-action An issue or pull request that requires more info or actions from the author.
Projects
None yet
Development

No branches or pull requests

2 participants