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:
- SAP WebClient development environment. See SAP Help Portal
- Example projects and code samples: https://github.com/CompuTec/appengine-examples
Install CompuTec templates
CompuTec provides templates to simplify project setup.
To install project templates, follow these steps:
-
Open a command prompt.
-
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
-
Go to the AppEngine installation folder:
C:\Program Files\CompuTec\AppEngine. -
Open the file:
Devapp.config.json. -
Update the following values:
-
Connection string for the
CTAPPDATAdatabase -
AppEngineInstance:
- Copy the instance guid from the installed CompuTec AppEngine, or
- Generate a new for development
noteIf 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"
} -
-
Save the file.
-
Stop the CompuTec AppEngine Service.
-
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
-
Open the CT.VehOne/Properties/launchSettings.json file.
-
Set the
CT_DEBUGvariable to the full path of:DevAeConfig.config.json.noteThe variable
CT_DEBUGis the absolute path to theDevAeConvig.config.jsonfile that is also located inCT.VehOne/Propertiesfolder.
Step 2: Configure plugins
-
Open the CT.VehOne/Properties/DevAeConvig.config.json file.
-
Add plugin entries to the
Pluginsarray. Each entry must point to adev.config.jsonfile (use absolute paths).noteThe variable
Pluginsis an array of all the plugins that will be launched when debugging the solution. They must lead to theCT.VehOne/dev.config.jsonfile (absolute).
Run the project
After completing the configuration:
- Start the project using the Default Configuration.
- 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