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

[BUG] I can't add files from solution explorer #1000

Closed
john-laststone opened this issue Mar 17, 2024 · 2 comments
Closed

[BUG] I can't add files from solution explorer #1000

john-laststone opened this issue Mar 17, 2024 · 2 comments
Assignees
Labels
area-templates Experiences around the project/item templates bug Something isn't working high-priority

Comments

@john-laststone
Copy link

john-laststone commented Mar 17, 2024

Describe the Issue

I can't add files from solution explorer from a simple project. Gives me this error:

Error running command csdevkit.addNewFile: Failed with ExitCode(6) Details No templates found matching: 'class'. To list installed templates, run: dotnet new --list To search for the templates on NuGet.org, run: dotnet new class --search . This is likely caused by the extension that contributes csdevkit.addNewFile.

I tried different version of c# extension and dev kit but the result is the same. I also tried to reinstall vscode and .NET SDK

Steps To Reproduce

dotnet new console -o TestProject
code TestProject
add new file from solution explorer

Expected Behavior

No response

Environment Information

  • OS: Pop os 22.04
  • .NET 6
  • VSCode 1.87.2
  • C# extension 2.32.2
  • C# dev kit 1.4.29
@john-laststone john-laststone added the bug Something isn't working label Mar 17, 2024
@arunchndr arunchndr added the area-templates Experiences around the project/item templates label Mar 18, 2024
@kvenkatrajan
Copy link

Thanks for your feedback. The class template was added in SDK version : 7.0.200 and hence is unavailable to be used in earlier version. Please upgrade to .NET8 sdk version or 7.0.2xx or higher

@microsoft microsoft deleted a comment from github-actions bot Mar 27, 2024
@tmeschter
Copy link
Member

Closing as this is by design. C# Dev Kit only support projects using the 7.0.2xx or higher SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-templates Experiences around the project/item templates bug Something isn't working high-priority
Projects
None yet
Development

No branches or pull requests

6 participants