Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am trying to make my ASP.NET Core application work with docker containers, so I've tried generating docker files via Docker extension in vs code using command pallet add dockerfile or docker-compose files - Badly, I get an error Cannot generate Dockerfiles for a .NET project unless version 1.23.9 or higher of the C# extension is installed. - even though I've installed it and tried some things to fix it (Like reinstalling extensions, vs code app and searching for answers elsewhere). I am using windows and I have docker installed and running when I am trying the scaffolding operation.

Here is a screenshot where you can see I am, in fact, have these extensions installed.

I had the same issue and solved it by downgrading the C# extension to 1.23.9 and restarting VS Code.

VS Code Extensions

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .