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 --project [path to csproj file] fails #653

Closed
ardalis opened this issue Jan 16, 2017 · 3 comments
Closed

dotnet run --project [path to csproj file] fails #653

ardalis opened this issue Jan 16, 2017 · 3 comments

Comments

@ardalis
Copy link

ardalis commented Jan 16, 2017

Trying to run a solution from the root folder using --project to specify the path to the .csproj (for an ASP.NET Core project) appears to run kestrel correctly on localhost:5000, but when you hit the URL in the browser nothing is logged to console and the browser just gets a 500 error with no details.

Navigating to the folder directly and running dotnet run from the folder where the web csproj file is located runs correctly.

Folder structure:
/Solution File
/src/Web/Web.csproj

Sample output:
image

@eerhardt
Copy link
Member

This is an issue with the ASP.NET templates - it sets the content root to be the current working directory, which in this case is C:\dev\GitHub\ddd-guestbook. See @davidfowl's and @natemcmaster's replies in this conversation: https://github.com/dotnet/cli/issues/4473#issuecomment-256213294

@eerhardt
Copy link
Member

Closing as this is not a dotnet/sdk issue.

@ardalis
Copy link
Author

ardalis commented Jan 16, 2017

Makes sense, thanks.

mmitche pushed a commit to mmitche/sdk that referenced this issue Jun 5, 2020
…522.13 (dotnet#653)

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19272.13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants