Skip to main content
Version: 3.0
info

You are currently viewing documentation for CompuTec AppEngine 3.0 (.NET 8).

If you are working with older environments, you may need the documentation for CompuTec AppEngine 2.0 based on .NET Framework, which is still supported: https://learn.computec.one/docs/appengine/2.0/.

As CompuTec AppEngine 3.0 introduces a new architecture, all CompuTec components must be updated together to ensure full compatibility.

Please review the CompuTec AppEngine 3.0 documentation before starting your installation or upgrade process.

Setting Up the Project and Debugging Environment

This guide explains how to prepare a development environment and run a project in debug mode using CompuTec AppEngine for SAP Business One.

Before you start

Before you start, make sure the following components are available:

  • CompuTec AppEngine is installed and connected to your development database. Read more
  • The target company is activated in CompuTec AppEngine Administration Panel. Read more
  • SAP Business One is running on the same database.
  • The CompuTec.Start extension is installed. By default, it is located at: C:\Program Files\sap\SAP Business One\AddOns\CT\CompuTec.Start\X64Client\

Optional:

Install CompuTec templates

CompuTec provides templates to simplify project setup.

To install project templates, follow these steps:

  1. Open a command prompt.

  2. Run the following command:

    dotnet new install CompuTec.AppEngine.Templates  

After installation, the templates are available when creating new projects.

Configure CompuTec AppEngine for development

  1. Go to the AppEngine installation folder: C:\Program Files\CompuTec\AppEngine.

  2. Open the file: Devapp.config.json.

  3. Update the following values:

    • Connection string for the CTAPPDATA database

    • AppEngineInstance:

      • Copy the instance guid from the installed CompuTec AppEngine, or
      • Generate a new for development
      note

      If you create a new instance, assign it to a company in CompuTec AppEngine Administration Panel.

    Example:

    {  
    "ConnectionStrings": {
    "DefaultDbProvider": "Hana",
    "DefaultConnection": "Database=DEV;server=hanadev:30013;uid=SYSTEM;password=xxxx;current Schema=CTAPPDATA"
    },
    "Logging": {
    "LogLevel": {
    "Default": "Warning",
    "Microsoft": "Error",
    "Microsoft.Hosting.Lifetime": "Information",
    "CompuTec": "Debug"
    },
    "Console": {
    "IncludeScopes": true
    },
    "Debug": {
    "IncludeScopes": true
    }
    },
    "DevelopmentConfiguration": {
    "Enabled": true
    },
    "AppEngineInstance": "e5aaf3d2-626c-4eea-a206-48979edee0e7",
    "DefaultAppEngineInstanceName": "Development From Sources"
    }
  4. Save the file.

  5. Stop the CompuTec AppEngine Service.

  6. Start CompuTec AppEngine from the console in delvelopment mode by running:

    CompuTec.AppEngine.Host.DevApp.core.exe

Configure project for debugging

Step 1: Set the project dev environment variable

  1. Open the CT.VehOne/Properties/launchSettings.json file.

  2. Set the CT_DEBUG variable to the full path of: DevAeConfig.config.json.

    note

    The variable CT_DEBUG is the absolute path to the DevAeConvig.config.json file that is also located in CT.VehOne/Properties folder.

Step 2: Configure plugins

  1. Open the CT.VehOne/Properties/DevAeConvig.config.json file.

  2. Add plugin entries to the Plugins array. Each entry must point to a dev.config.json file (use absolute paths).

    note

    The variable Plugins is an array of all the plugins that will be launched when debugging the solution. They must lead to the CT.VehOne/dev.config.json file (absolute).

Run the project

After completing the configuration:

  1. Start the project using the Default Configuration.
  2. Computec AppEngine loads the defined plugins and runs them in the development environment.

Results

After this setup:

  • CompuTec AppEngine runs in development mode
  • Your project starts with configured plugins
  • You can debug and test changes locally