Skip to content

Instantly share code, notes, and snippets.

@lmatt-bit
Created July 2, 2019 06:25
Show Gist options
  • Save lmatt-bit/919c28fb795f8792c040c684592a59df to your computer and use it in GitHub Desktop.
Save lmatt-bit/919c28fb795f8792c040c684592a59df to your computer and use it in GitHub Desktop.
how to forward port in vs docker tool
You can add the <DockerfileRunArguments> tag to the <PropertyGroup> section in your *.csproj file and put additional run parameters there.
e.g.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<DockerfileRunArguments>-p 5000:6000</DockerfileRunArguments>
</PropertyGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment