Skip to content

Commit ca491a6

Browse files
committed
Update docs
1 parent 7bad029 commit ca491a6

File tree

11 files changed

+173
-40
lines changed

11 files changed

+173
-40
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## v0.3.2 (24-03-2023)
4+
5+
- Added output of diagnostic information when connecting via ssh protocol.
6+
- Added stdErr and codeErr output at the end of ssh script execution.
7+
- Fixed the problem of long execution of scripts when adding a device.
8+
- Added parameter `fastiot.template.loadonstart`, you can disable the loading of templates at the start of the extension.
9+
- Added parameter `fastiot.template.updateinterval`, time interval between template updates.
10+
- Added parameter `fastiot.template.isupdate`, disables template updates.
11+
- Added `Restore/upgrade system templates` command to restore system templates.
12+
- Variables added for project templates: `%{extension.apps.builtin.aswindows}`, `%{os.userinfo.username}`.
13+
- Compliance with UX Guidelines is done.
14+
- Improved UI.
15+
- Changed the description of the settings.
16+
- Added Crlf normalization for bash scripts.
17+
- Fixed bugs.
18+
319
## v0.3.1 (27-02-2023)
420

521
- Bugs fixed.

ISSUES.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Known Issues
22

3-
1. The user interface of the extension does not follow the [UX Guidelines](https://code.visualstudio.com/api/ux-guidelines/overview).
3+
1. The user interface of the extension does not partially comply with the [UX Guidelines](https://code.visualstudio.com/api/ux-guidelines/overview).
44

5-
2. It takes a long time to create a device profile.
5+
2. Commands are executed slowly.
66

7-
3. Commands are executed slowly.
8-
9-
4. Low speed of execution of bash scripts.
7+
3. Low speed of execution of bash scripts.

ISSUES_ru.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
2. Медленно выполняются команды.
66

7-
4. Низкая скорость выполнения bash-скриптов.
7+
3. Низкая скорость выполнения bash-скриптов.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Additional extensions required for developing .NET applications:
3636

3737
Recommended additional extensions that improve the development process and interaction with the remote device:
3838

39-
- [NuGet Package Manager](https://marketplace.visualstudio.com/items?itemName=jmrog.vscode-nuget-package-manager "NuGet Package Manager") - adding Nuget packages (later the Nuget package manager will be built into extension);
39+
- [NuGet Package Manager GUI](https://marketplace.visualstudio.com/items?itemName=aliasadidev.nugetpackagemanagergui "NuGet Package Manager GUI") - adding Nuget packages (later the Nuget package manager will be built into the extension);
4040
- [DeviceTree](https://marketplace.visualstudio.com/items?itemName=plorefice.devicetree "DeviceTree") - Syntax support for Device Tree (DT) files. Used to edit `*.dts` files. For example, it will be necessary if it becomes necessary to adapt the [SPI LCD ILI9341 display](https://devdotnet.org/post/rabota-s-gpio-v-linux-na-primere-banana-pi-bpi-m64-chast-4-device-tree-overlays-podkluchenie-displey-spi-lcd-ili9341/ "SPI LCD ILI9341 display") for your SBC;
4141
- [Output Colorizer](https://marketplace.visualstudio.com/items?itemName=IBM.output-colorizer "Output Colorizer") - adds color to the test messages in the OUTPUT window, makes it easier to perceive the information provided by the extension.
4242

@@ -93,6 +93,6 @@ See [ISSUES](ISSUES.md "ISSUES") and [Issues on GitHub](https://github.com/devdo
9393

9494
Testing was performed on single-board computers:
9595

96-
- [Cubieboard](https://github.com/devdotnetorg/Cubieboard "Cubieboard")
97-
- [Cubietruck](https://devdotnet.org/post/otladochnaya-plata-cubietruck/ "Cubietruck")
98-
- [Banana Pi BPI-M64](https://devdotnet.org/post/otladochnaya-plata-banana-pi-bpi-m64/ "Banana Pi BPI-M64")
96+
- [Cubieboard](https://github.com/devdotnetorg/Cubieboard "Cubieboard"). Armbian distribution.
97+
- [Cubietruck](https://devdotnet.org/post/otladochnaya-plata-cubietruck/ "Cubietruck"). Armbian distribution.
98+
- [Banana Pi BPI-M64](https://devdotnet.org/post/otladochnaya-plata-banana-pi-bpi-m64/ "Banana Pi BPI-M64"). Armbian distribution.

SCHEDULE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- Compliance with UX Guidelines.
44
- Adding a WebView to select a project template.
55
- Custom installation packages.
6-
- Custom BASH scripts to run on device and PC.
6+
- Custom bash-scripts to run on device and PC.
77
- GPIO: read chips, view gpio line, control I/O.
88
- Support for Python projects.
99
- Ensuring work in Linux.

docs/Extension-settings.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ Settings:
1313
- **Fastiot › Device > ssh > Key: Bits** - key length in bits. Default value: `256`.
1414
- **Fastiot › Device > ssh > Key: Type** - The name of the algorithm used to generate the key. For more information about key algorithms, see [How To Set Up SSH Keys](https://goteleport.com/blog/how-to-set-up-ssh-keys/). Default value: `ed25519`. If you choose the `rsa` algorithm, then you will need to add the line `PubkeyAcceptedAlgorithms=+ssh-rsa` to the `/etc/ssh/sshd_config` file.
1515
- **Fastiot › Launch: Templatetitle** - template for forming the name of Launch. Variable values can be viewed at [link](Launch-title-template.md "Template for forming the name Launch"). Default value: `Launch on %{device.label} (%{project.name}, %{device.board.name}, %{device.user.debug})`.
16+
- **Fastiot › Template: Isupdate** - enable/disable updating templates from Internet resources.
17+
- **Fastiot › Template: Lastupdate** - last update time. Technical parameter.
18+
- **Fastiot › Template: Loadonstart** - loading templates at extension start. If this option is disabled, templates will only be loaded the first time they are accessed.
19+
- **Fastiot › Template: Updateinterval** - template update interval in hours.

docs/Getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ apt-get install -y sudo
1616
```bash
1717
sudo apt-get update
1818
sudo apt-get install -y openssh-server mc
19-
sudo systemctl reload ssh
20-
sudo systemctl status ssh
2119
sudo mcedit /etc/ssh/sshd_config
2220
```
2321

@@ -118,6 +116,8 @@ To run a .NET IoT application and perform remote debugging, you need to install:
118116

119117
Sample projects with added configuration Launch (`/.vscode/launch.json`) and Tasks (`/.vscode/tasks.json`) are located in the [samples](/samples/) folder.
120118

119+
The `template.fastiot.yaml` file will be placed in the project folder. This file is required to determine the template ID when adding Launch. If it is removed, then there will be no exact definition of the template from which the project was formed. From the `template.fastiot.yaml` file, only the template identifier string `id: dotnet-console` is taken.
120+
121121
## Rebuild Launch
122122

123123
Launch (`/.vscode/launch.json`) and Tasks (`/.vscode/tasks.json`) configurations contain absolute paths to binary files that are loaded on the device, for example `/cygdrive/d/Anton/Projects/Tests /DotnetConsoleAppRuntimeInfo/bin/Debug/net5.0/linux-arm/`. In this regard, if you change the path to the `Applicationdatafolder` folder in the settings or rename / move the project folder, then the paths become non-existent. In this case, you need to rebuild (Rebuild) Launch. Select the required Launch and then call the context menu, click on the `Rebuild` menu item.

docs/Launch-title-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ Default value: `Launch on %{device.label} (%{project.name}, %{device.board.name}
44

55
Merging example: `Launch on cubieboard (DotnetConsoleBlinkLEDApplication, Cubieboard, debugvscode)`.
66

7-
Variables for creating the name of the Launch configuration and their values can be viewed on the [Project Templates](Project-templates.md "Project Templates") page.
7+
See the [Project Templates](Project-templates.md "Project Templates") page for the variables to create the Launch configuration name and their values.
88

99
If you need additional variables, please create an [ISSUE](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/issues "ISSUE").

docs/Project-templates.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ The template is a regular zip archive with the following structure:
2525

2626
### Folder - storage
2727

28-
Any files can be placed. In particular, each template folder contains the **cwRsync** and **ssh** utilities used to remotely log into the device and copy executable binaries. Optionally, you can replace the package by downloading from the official site at [link](https://itefix.net/cwrsync "link").
28+
Any files can be placed. For example, the **cwRsync** and **ssh** utilities used to remotely login to a device and copy executable binaries. Optionally, you can replace the package by downloading from the official site at [link](https://itefix.net/cwrsync "link").
29+
30+
The **cwRsync** and **ssh** utilities have been moved to the [system application directory](/windows/apps/) to avoid unnecessary increase in the size of the template. Now there is no need to duplicate the specified utilities for each template. It is enough to specify the path to system utilities in the template, for example: "%{extension.apps.builtin.aswindows}\\\\cwrsync\\\\ssh.exe".
2931

3032
### Folder - template
3133

@@ -82,6 +84,13 @@ If the value of the `name` key, e.g. `Launch on cubieboard (DotnetApp, Cubieboar
8284

8385
Additional keys have been added to Launch, prefixed with `fastiotId*`, keys: `fastiotIdLaunch`, `fastiotIdDevice`, `fastiotProject`, `fastiotIdTemplate`. It is not recommended to change them. some extension functions may not be available because of this.
8486

87+
Keys:
88+
- `fastiotIdLaunch` - unique Launch identifier;
89+
- `fastiotIdDevice` - unique device identifier;
90+
- `fastiotProject` - unique ID of the template from which Launch was created;
91+
- `fastiotIdTemplate` - the path to the project with which this Launch is associated;
92+
- `fastiotDescription` - (optional) Text description of Launch. Use ` \n` (two spaces and \n) to break a line.
93+
8594
Example:
8695

8796
```json
@@ -90,6 +99,7 @@ Example:
9099
"fastiotIdDevice": "cubieboard-5e835aae",
91100
"fastiotProject": "/DotnetConsoleAppRuntimeInfo.csproj",
92101
"fastiotIdTemplate": "dotnet-console-runtime-info",
102+
"fastiotDescription": "Launch with logging. \nRsync copying executable files - project_folder/rsync.log. \nDebugger - /var/log/vsdbg.log",
93103
"name": "Launch on cubieboard (DotnetConsoleAppRuntimeInfo, Cubieboard, debugvscode)",
94104
"type": "coreclr",
95105
"request": "launch",
@@ -188,6 +198,8 @@ Variables:
188198
21. "%{project.dotnet.namespace}" => "DotnetConsoleAppRuntimeInfo".
189199
22. "%{device.dotnet.rid}" => "linux-arm".
190200
23. "%{launch.label}" => "Launch on cubieboard (DotnetConsoleAppRuntimeInfo, Cubieboard, debugvscode)".
201+
24. "%{extension.apps.builtin.aswindows}" => "d:\\\\Anton\\\\GitHub\\\\vscode-extension-dotnet-fastiot\\\\windows\\\\apps\\\\cwrsync\\\\ssh.exe".
202+
25. "%{os.userinfo.username}" => "Anton".
191203

192204
**Values when there are directories in the path**
193205

@@ -203,6 +215,8 @@ Variables:
203215
6. "%{project.path.relative.aswindows}" => "\\\\nested".
204216
7. "%{project.path.full.ascygdrive}" => "/cygdrive/d/Anton/Projects/Tests/DotnetConsoleAppTestNested/nested".
205217

218+
If you need additional variables, please create an [ISSUE](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/issues "ISSUE").
219+
206220
## Debugging the template
207221

208222
All errors related to template validation will be displayed in the OUTPUT window.

0 commit comments

Comments
 (0)