Command Palette for VSCode BACKND Function
When using Visual Studio Code as a development tool, after installing BackendFunctionExtension, you can use the Command Palette(shortcut F1, or Ctrl + Shift + P) to use commands related to configuration, build, and deployment.
For normal operation, the BACKND Function development tool must be installed.
If the project path includes spaces, commands may not work properly.
Available commands are as follows:
Command | Description |
---|---|
BackendFunction: Create | Create a new folder by specifying a folder and install the template inside |
BackendFunction: Config | Open the config.json used for building and deployment. |
BackendFunction: Build Current Project | Build using BackendFunction.csproj of the current project. |
BackendFunction: Build by config.json | Build using the information stored in config.json. |
BackendFunction: Deploy | Designate the built file(package.zip) and manually set the function name to be registered and deploy it. |
BackendFunction: Deploy by config.json with FuntionName | Manually set and deploy the project information registered in config.json and the function name to be registered. |
BackendFunction: Deploy by config.json | Deploy using information registered in config.json. |
BackendFunction: Delete | Enter the method name to remove the method deployed in BACKND. |
Call commands
- Install the BACKND development tool and the BackendFunction extension from the marketplace in vscode.
- Press F1 or Ctrl + Shift + P to open the Command Palette.
- Enter commands into the Command Palette.
- Then check the result through the integrated terminal within vscode.
Create
>BackendFunction: Create
Create a new folder by specifying a folder and install the template inside that folder.
A new vscode window will open for that project.
Configure Config.Json
BackendFunction: Config
Open the config.json used for building and deployment.
Build
>BackendFunction: Build Current Project
Build using BackendFunction.csproj of the current project.
The built project is created as publish.zip in the working folder/bin/Release/netcoreapp2.1 or netcoreapp3.1/linux-x64/ folder.
After that, you can deploy it by specifying the corresponding zip.
>BackendFunction: Build by config.json
Build using the information stored in config.json.
The command BackendFunction: Config allows you to modify the config.json to be used in the build.
Deploy
>BackendFunction: Deploy
Designate the built file(package.zip) and manually set the function name to be registered in BACKND and deploy it.
- Specify the built file. The path is most likely /bin/Release/netcoreapp2.1/linux-x64/publish.zip.
- Enter the FunctionName to be registered in BACKND in the input window.
- Check the information you wish to deploy in the integrated terminal and press y/n to proceed.
>BackendFunction: Deploy by config.json with FuntionName
Manually set and deploy the function name to be registered in BACKND. The build file is deployed as a file in the path set in config.json.
- Enter the FunctionName to be registered in BACKND in the input window.
- Check the information you wish to deploy in the integrated terminal and press y/n to proceed.
>BackendFunction: Deploy by config.json
Deploy using the information stored in config.json.
The command BackendFunction: Config allows you to modify the config.json to be used in the build.
- Check the information you wish to deploy in the integrated terminal and press y/n to proceed.
Delete
>BackendFunction: Delete
Enter the method name to remove the method deployed in BACKND.