What are Dev Tunnels in Visual Studio?
Jo?o Eduardo Pequena
Desenvolvedor Full Stack .NET e Net Core | C# | VB.Net | SQL Server | RabbitMQ | Node JS | JavaScript | Vue JS | React JS
It provides a capability so that machines that cannot be directly connected to each other can be connected to each other. In fact, it provides an ad-hoc connection between machines.?After configuring this feature, when running the application in Visual Studio, it can be run on addresses that other applications have access to instead of addresses such as localhost. In fact, before, without using Dev tunnels, your applications strat usually used addresses like https://localhost:7223, but while using Dev tunnels, your applications start using addresses like https:// l8lh5vfv-44397.uks1.devtunnels.ms
Prerequisites
1.???? Visual Studio 2022 17.6 or newer (This feature is not available in Visual Studio for Mac)
2.???? ASP.NET and Web Development workload installed
How to Configure Dev Tunnels?
1. Select your web project, and from Debug dropdown, select Dev Tunnels > Create Tunnel.
2. In the Create a Tunnel window:
1.???? Select the account which is used to create a new tunnel. You need to provide your Microsoft or GitHub account.
领英推荐
2.???? Provide a name for the Tunnel. This name is used in Visual Studio only when selecting a tunnel.
3.???? Select the Tunnel Type. Tunnel type can be either Temporary or Persistent. Temporary Tunnel will generate a new Url each time you open the Visual Studio. On the other hand, Persistent Tunnel will reuse the same Url.
4.???? Select the Access type and level. Tunnels can have either Private, Organization, or Public access types. With the Private access type, the Tunnel is only available to the person who created it. With the Organization access type, the Tunnel will be available for the organization(s) the account is a member of. Finally, the Public access type does not require authentication, and the generated Url will be publicly available. Of course, the public access type should be used with caution.
After setting these properties, click on Ok to create the Tunnel. After clicking Ok, the create tunnel window will be closed. So wait until the "dev tunnel has been successfully created" message appears.
You can click on Continue to navigate to your web application.
Cegid Primavera |Power Automate | PostgreSQL | Power B.I | SSIS | SQLServer | Analista de Dados (Data Analyst)
3 个月Grande professional Jo?o Eduardo Pequena