-
Notifications
You must be signed in to change notification settings - Fork 521
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
Fail to open a "Welcome" webpage after clicking "Open in Browser" from "dotnetapp:dev" container context menu #4006
Comments
I'm going to look into this as well. |
I see what's going on. If you run the .NET SDK build image by right clicking on it in our extension, the ports aren't getting exposed because it's not built in the image. (In other words, the |
@alexyaang This issue doesn't reproduce for the cloned "TestSolution" project.
|
Yeah that makes sense! |
For the .NET 8.0 MVC project created by command <ItemGroup>
<ContainerPort Include="8080" Type="tcp" />
</ItemGroup> It should look something like this and see if this issue still persists. <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>dotnet_app</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ContainerPort Include="8080" Type="tcp" />
</ItemGroup>
</Project>
|
@alexyaang This issue still reproduces after adding the
|
mhmm interesting, are you trying this on linux containers or windows containers? |
@alexyaang I test this on the Linux containers. There is a known issue on Windows containers #4005. |
OS: Mac&Windows
Docker Extension Build Version: 20230712.5
.NET Version: 8.0.100-preview.5.23303.2
Repro Steps:
dotnet new mvc --name Dotnetapp
-> Open it in VS Code.Launch.json
file.TargetFramework
property inside the.csproj
file is equal tonet8.0
.Expect:
Succeed to open a "Welcome" webpage.
Actual:
Fail to open a "Welcome" webpage.
The text was updated successfully, but these errors were encountered: