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 を実行すると、エラーが表示されます。エラーが示していることが分かりません #8553

Closed
girigir opened this issue Jun 17, 2023 · 3 comments
Labels
area-tutorials Issues related to getting started tutorials needs-more-info Not enough information has been provided. Please share more detail as requested. Stale

Comments

@girigir
Copy link

girigir commented Jun 17, 2023

dotnet run を実行すると、エラーが表示されます。このエラー内容は何をどのようにしたら良いのでしょうか?
以下のエラー内容です。
実行するプロジェクトが見つかりませんでした。プロジェクトが C:\Users\○○ に存在することを確認するか、--project を使用してパスをプロジェクトに渡してください。

@adamsitnik
Copy link
Member

Hi @girigir

The first command from the tutorial creates a new project file and puts it into MyApp folder.

dotnet new console -o MyApp -f net7.0

dotnet run works only in folders where there is a project file, so you need to change the directory to a folder with the project file:

cd MyApp 

Please give it a try and let me know if it helped.

@adamsitnik adamsitnik added needs-more-info Not enough information has been provided. Please share more detail as requested. area-tutorials Issues related to getting started tutorials labels Jun 19, 2023
@github-actions
Copy link

This issue is stale because there has been no response to a request for more information for 7 days.

@github-actions github-actions bot added the Stale label Jun 26, 2023
@github-actions
Copy link

This issue was closed because there was no response to a request for more information for 10 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-tutorials Issues related to getting started tutorials needs-more-info Not enough information has been provided. Please share more detail as requested. Stale
Projects
None yet
Development

No branches or pull requests

2 participants