Skip to content

Commit 1c2c9d2

Browse files
authored
New run-the-app include & trustCert updates (#15619)
* New run-the-app include & trustcert updates * Removed moniker from metadata since include has monikers * removed moniker from metadata * added VS context to run-the-app for alt-cmd-enter * moved run app section to include run-the-app.md * corrected date on metadata for razor-pages-start.md * added bold for Run-Start without debugging to run-the-app.md
1 parent c74fc1a commit 1c2c9d2

File tree

5 files changed

+50
-47
lines changed

5 files changed

+50
-47
lines changed
23 KB
Loading

aspnetcore/includes/run-the-app.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# [Visual Studio](#tab/visual-studio)
2+
3+
* Press Ctrl+F5 to run without the debugger.
4+
5+
[!INCLUDE[](~/includes/trustCertVS.md)]
6+
7+
Visual Studio starts [IIS Express](/iis/extensions/introduction-to-iis-express/iis-express-overview) and runs the app. The address bar shows `localhost:port#` and not something like `example.com`. That's because `localhost` is the standard hostname for the local computer. Localhost only serves web requests from the local computer. When Visual Studio creates a web project, a random port is used for the web server.
8+
9+
# [Visual Studio Code](#tab/visual-studio-code)
10+
11+
[!INCLUDE[](~/includes/trustCertVSC.md)]
12+
13+
* Press **Ctrl-F5** to run without the debugger.
14+
15+
Visual Studio Code starts [Kestrel](xref:fundamentals/servers/kestrel), launches a browser, and navigates to `http://localhost:5001`. The address bar shows `localhost:port#` and not something like `example.com`. That's because `localhost` is the standard hostname for local computer. Localhost only serves web requests from the local computer.
16+
17+
18+
# [Visual Studio for Mac](#tab/visual-studio-mac)
19+
20+
[!INCLUDE[](~/includes/trustCertMac.md)]
21+
22+
* From Visual Studio, press **Alt-Cmd-Enter** to run without the debugger. Alternatively, navigate to the menu bar and go to **Run>Start Without Debugging**.
23+
24+
Visual Studio starts [Kestrel](xref:fundamentals/servers/kestrel), launches a browser, and navigates to `http://localhost:5001`.
25+
26+
<!-- End of VS tabs -->
27+
28+
---

aspnetcore/includes/trustCertVS.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1+
::: moniker range=">= aspnetcore-3.0"
2+
Visual Studio displays the following dialog:
3+
4+
![This project is configured to use SSL. To avoid SSL warnings in the browser you can choose to trust the self-signed certificate that ASP.NET Core has generated. Would you like to trust the ASP.NET Core SSL certificate?](~/getting-started/_static/trustCert-3x.png)
5+
6+
Select **Yes** if you trust the ASP.NET Core SSL certificate.
7+
8+
The following dialog is displayed:
9+
10+
![Security warning dialog](~/getting-started/_static/cert.png)
11+
12+
Select **Yes** if you agree to trust the development certificate.
13+
14+
See [Trust the ASP.NET Core HTTPS development certificate](xref:security/enforcing-ssl#trust-the-aspnet-core-https-development-certificate-on-windows-and-macos) for more information.
15+
::: moniker-end
116

17+
::: moniker range="< aspnetcore-3.0"
218
Visual Studio displays the following dialog:
319

420
![This project is configured to use SSL. To avoid SSL warnings in the browser you can choose to trust the self-signed certificate that IIS Express has generated. Would you like to trust the IIS Express SSL certificate?](~/getting-started/_static/trustCert.png)
@@ -11,4 +27,5 @@ The following dialog is displayed:
1127

1228
Select **Yes** if you agree to trust the development certificate.
1329

14-
See [Trust the ASP.NET Core HTTPS development certificate](xref:security/enforcing-ssl#trust-the-aspnet-core-https-development-certificate-on-windows-and-macos) for more information.
30+
See [Trust the ASP.NET Core HTTPS development certificate](xref:security/enforcing-ssl#trust-the-aspnet-core-https-development-certificate-on-windows-and-macos) for more information.
31+
::: moniker-end

aspnetcore/tutorials/grpc/grpc-start.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
title: Create a .NET Core gRPC client and server in ASP.NET Core
33
author: juntaoluo
44
description: This tutorial shows how to create a gRPC Service and gRPC client on ASP.NET Core. Learn how to create a gRPC Service project, edit a proto file, and add a duplex streaming call.
5-
monikerRange: '>= aspnetcore-3.0'
65
ms.author: johluo
7-
ms.date: 10/10/2019
6+
ms.date: 11/12/2019
87
uid: tutorials/grpc/grpc-start
98
---
109
# Tutorial: Create a gRPC client and server in ASP.NET Core
@@ -91,21 +90,7 @@ From Visual Studio, select **File** > **Open**, and then select the *GrpcGreeter
9190

9291
### Run the service
9392

94-
# [Visual Studio](#tab/visual-studio)
95-
96-
* Press `Ctrl+F5` to run the gRPC service without the debugger.
97-
98-
Visual Studio runs the service in a command prompt.
99-
100-
# [Visual Studio Code](#tab/visual-studio-code)
101-
102-
* Run the gRPC Greeter project *GrpcGreeter* from the command line using `dotnet run`.
103-
104-
# [Visual Studio for Mac](#tab/visual-studio-mac)
105-
106-
* Run the gRPC Greeter project *GrpcGreeter* from the command line using `dotnet run`.
107-
108-
---
93+
[!INCLUDE[](~/includes/run-the-app.md)]
10994

11095
The logs show the service listening on `https://localhost:5001`.
11196

aspnetcore/tutorials/razor-pages/razor-pages-start.md

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Tutorial: Get started with Razor Pages in ASP.NET Core"
33
author: rick-anderson
44
description: This series of tutorials shows how to use Razor Pages in ASP.NET Core. Learn how to create a model, generate code for Razor pages, use Entity Framework Core and SQL Server for data access, add search functionality, add input validation, and use migrations to update the model.
55
ms.author: riande
6-
ms.date: 07/25/2019
6+
ms.date: 11/12/2019
77
uid: tutorials/razor-pages/razor-pages-start
88
---
99

@@ -114,34 +114,7 @@ From Visual Studio, select **File > Open**, and then select the *RazorPagesMovie
114114

115115
## Run the app
116116

117-
# [Visual Studio](#tab/visual-studio)
118-
119-
* Press Ctrl+F5 to run without the debugger.
120-
121-
[!INCLUDE[](~/includes/trustCertVS.md)]
122-
123-
Visual Studio starts [IIS Express](/iis/extensions/introduction-to-iis-express/iis-express-overview) and runs the app. The address bar shows `localhost:port#` and not something like `example.com`. That's because `localhost` is the standard hostname for the local computer. Localhost only serves web requests from the local computer. When Visual Studio creates a web project, a random port is used for the web server.
124-
125-
# [Visual Studio Code](#tab/visual-studio-code)
126-
127-
[!INCLUDE[](~/includes/trustCertVSC.md)]
128-
129-
* Press **Ctrl-F5** to run without the debugger.
130-
131-
Visual Studio Code starts [Kestrel](xref:fundamentals/servers/kestrel), launches a browser, and navigates to `http://localhost:5001`. The address bar shows `localhost:port#` and not something like `example.com`. That's because `localhost` is the standard hostname for local computer. Localhost only serves web requests from the local computer.
132-
133-
134-
# [Visual Studio for Mac](#tab/visual-studio-mac)
135-
136-
[!INCLUDE[](~/includes/trustCertMac.md)]
137-
138-
* Press **Alt-Cmd-Enter** to run without the debugger. Alternatively, navigate to the menu bar and go to Run>Start Without Debugging.
139-
140-
Visual Studio starts [Kestrel](xref:fundamentals/servers/kestrel), launches a browser, and navigates to `http://localhost:5001`.
141-
142-
<!-- End of VS tabs -->
143-
144-
---
117+
[!INCLUDE[](~/includes/run-the-app.md)]
145118

146119
## Examine the project files
147120

0 commit comments

Comments
 (0)