Skip to content

Tutorial 04 03 Add Traditional Bridge Library Code

Matt Linder edited this page Jun 8, 2023 · 22 revisions

Harmony Core Logo

Tutorial 4: Updating Traditional Bridge

Before we go any further, we'll use the Harmony Core upgrade tool to make sure the Traditional Bridge templates and library code are up to date. The Harmony Core upgrade tool does three things:

  • Checks all your projects, making sure you are using the latest released version of Harmony Core and appropriate versions of all dependencies. This includes updates to Traditional Bridge library code the Bridge folder of the TraditionalBridge project.
  • Provides updated versions of all CodeGen templates.
  1. In Visual Studio, select Tools > Command Prompt (x64) to open a command prompt window.

  2. In Visual Studio, select File > Close Solution from the menu to close the Harmony Core solution.

  3. In the command prompt window, move up one level to your main solution directory (cd ..) and execute the following command:

    harmonycore upgrade-latest
    

    You will be required to enter YES to confirm the upgrade, and you should see output like this:

    Scanning 'C:\hc\tutorial\MyApi' for HarmonyCore project files
    Using MSBuild from path: C:\Program Files\dotnet\sdk\6.0.402
    
    This utility will make significant changes to projects and other source files in your Harmony Core development environment. Before running this tool, we recommend checking the current state of your development environment into your source code repository or making a backup copy of the environment if you don't use source code control.  
    
    Type YES to proceed:
    YES
    Updating template files in C:\hc\tutorial\MyApi\Templates
    Found template files in C:\hc\tutorial\MyApi\Templates\MySQL
    Found template files in C:\hc\tutorial\MyApi\Templates\SignalR
    Found template files in C:\hc\tutorial\MyApi\Templates\ReactRedux
    Found template files in C:\hc\tutorial\MyApi\Templates\TypeScript
    Found template files in C:\hc\tutorial\MyApi\Templates\TraditionalBridge
    Updating traditional bridge files in C:\hc\tutorial\MyApi\TraditionalBridge\Bridge
    
  4. Close the command prompt, and then open the solution in Visual Studio.


Next topic: Adding Traditional Bridge Routines


Clone this wiki locally