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

I can't create a c# cosnole app, using c# dev kit #76

Closed
leoleoleo57 opened this issue Feb 27, 2024 · 9 comments
Closed

I can't create a c# cosnole app, using c# dev kit #76

leoleoleo57 opened this issue Feb 27, 2024 · 9 comments
Labels
area-tutorials Issues related to getting started tutorials tutorial-console Console tutorial related issues

Comments

@leoleoleo57
Copy link

leoleoleo57 commented Feb 27, 2024

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/create
Operating System: windows

I tried to create a new console app, using c# dev kit in visual studio code.
I followed the steps on Microsoft's page, but I get the following error:
image

I aready installed the .net sdk:
image

And I also installed and connected my account to c# dev kit:
image

Why is the error?

@mairaw
Copy link
Contributor

mairaw commented Feb 28, 2024

Can you also share what dotnet --info returns?

@mairaw mairaw added area-tutorials Issues related to getting started tutorials needs-more-info Not enough information has been provided. Please share more detail as requested. tutorial-console Console tutorial related issues labels Feb 28, 2024
@leoleoleo57
Copy link
Author

Sure:
image

@sunhaolin
Copy link

+1

@mairaw
Copy link
Contributor

mairaw commented Mar 1, 2024

Thank you @leoleoleo57.

The screenshot shows that you have a mix of x86 and x64 installations on your machine. There was a bug that was fixed in newer releases related to the PATH.

Please run where.exe dotnet and see what it returns. If x86 is first and your machine is x64, please use these instructions to fix your PATH:
dotnet/core#5962 (comment)

@sunhaolin I might need some information from your system to be able to help you.

@sunhaolin
Copy link

image

@leoleoleo57
Copy link
Author

Thank you! I fixed it

Copy link

github-actions bot commented Mar 8, 2024

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 Issue is stale. Waiting on answer. label Mar 8, 2024
@mairaw mairaw removed needs-more-info Not enough information has been provided. Please share more detail as requested. stale Issue is stale. Waiting on answer. labels Mar 8, 2024
@mairaw
Copy link
Contributor

mairaw commented Mar 8, 2024

Great to hear @leoleoleo57.

@sunhaolin I think in your case it would be best to open an issue on the C# dev kit repo: https://github.com/microsoft/vscode-dotnettools/issues
Before you do that, if you create an app via terminal, does it work?
dotnet new console -o MyConsoleApp

Just wondering if it's an installation problem or C# Dev Kit one.

@mairaw
Copy link
Contributor

mairaw commented May 15, 2024

Closing due to the lack of information for more than 2 months.

@mairaw mairaw closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
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 tutorial-console Console tutorial related issues
Projects
None yet
Development

No branches or pull requests

3 participants