Snippets used: [csproj_2.0]
and [#helloworld]
- The video has a duration of 50 seconds. In this time, you will be able to generate your first .NET Core app.
Snippets used: [dnac_csproj_2.0]
[dnac_#helloworld_Startup]
and [dnac_#helloworld_WebApp]
The dnac* snippets have been renamed to ac_*
- The video has a duration of 50 seconds. In this time, you will be able to generate your first ASP.NET Core app.
Snippets used: [gRPC_client_csproj]
[gRPC_client_program]
[gRPC_proto]
[gRPC_server_csproj]
[gRPC_server_program]
[gRPC_server_service]
[gRPC_server_settings]
and [gRPC_server_startup]
- Create a folder (for example: GrpcHelloWorld)
- Create three folders (Client, Proto, Server)
- Go to the Client folder
- Create a file named Client.csproj.cs
- Apply the
[gRPC_client_csproj]
snippet - Rename the file to Client.csproj
- Create a file named Program.cs
- Apply the
[gRPC_client_program]
snippet
- Go to the Proto folder
- Create a file named greet.proto.cs
- Apply the
[gRPC_proto]
snippet - Rename the file to greet.proto
- Go to the Server folder
- Create a file named Server.csproj.cs
- Apply the
[gRPC_server_csproj]
snippet - Rename the file to Server.csproj
- Create a file named Program.cs
- Apply the
[gRPC_server_program]
snippet - Create a file named GreeterService.cs
- Apply the
[gRPC_server_service]
snippet - Create a file named appsettings.json.cs
- Apply the
[gRPC_server_settings]
snippet - Rename the file to appsettings.json
- Create a file named Startup.cs
- Apply the
[gRPC_server_startup]
snippet
- Open the terminal
- Go to the Client folder
- Write the command dotnet build --source https://api.nuget.org/v3/index.json
- Go to the Server folder
- Write the command dotnet build --source https://api.nuget.org/v3/index.json
- Open two terminals or command line windows
- Go to the Client and Server folders
- Start the Server writting the command dotnet run or the Server.exe from the bin folder
- Start the Client writting the command dotnet run or the Client.exe from the bin folder