microsoft / vscode-remote-try-dotnet

.NET sample project for trying out Dev Containers
https://aka.ms/vscode-remote/containers/getting-started
MIT License
230 stars 180 forks source link

Is there a way I can use dotnet 6 preview by change something in dockerfile. #20

Closed anirugu closed 3 years ago

anirugu commented 3 years ago

I am looking for testing dotnet 6. How I can do that by change something in dockerfile and devcontainer.json and dotnet 6 environment is ready for testing.

Chuxel commented 3 years ago

Yep! In fact, this is why the source dockerfile is referenced. Just copy the contents of the .devcontainer folder from that location, update devcontainer.json to reference 6.0 for the VARIANT and update dockerfile to reference base.Dockerfile.

anirugu commented 3 years ago

@Chuxel Thanks for help.

I tried to get 6.0 but I didn't found it. Is this repo exist on docker as well, where I can find other tags?. Please check the screenshot Screenshot from 2021-02-26 13-17-17

anirugu commented 3 years ago

I look into https://mcr.microsoft.com/v2/vscode/devcontainers/dotnet/tags/list and didn't find the 6.0

I change the path to FROM mcr.microsoft.com/dotnet/sdk:${VARIANT}-focal and comentout the remoteuser and it's working for me for now.

anirugu commented 3 years ago

@Chuxel Thanks, my problem fixed. Your earlier comment is correct.