summaryrefslogtreecommitdiff
path: root/docs/nncc/v1.1.0/nncc_in_visual_studio.md
blob: bc9e59fa91c553114bf64ae416af6dee58a218c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# nncc for Visual Studio Tizen Extension

## Environments

- Windows 10

## How to install nncc in Visual Studio

### Things to prepare

- Visual Studio 2019 for Windows
    - Version Status
        - Community version : Not available yet
        - Professional version : Available
        - Enterprise version : Available
    - Needed Workload
        - .NET Desktop Development
        - If above workload was not installed, please install it using Visual Studio Installer.
    - Under 2019 version, some details can be different
        - Express version : Not available
        - Other versions : Not confirmed
    - Refer to https://developer.tizen.org/development/visual-studio-tools-tizen/installing-visual-studio-tools-tizen
- Tizen Baseline SDK
  - Install `nnas` by using Package Manager. For details, [click here.](nncc_in_tizen_studio.md)

### Installation

1. Download `VisualStudioToolsForTizen_2019AI_3.1.0116.1.vsix` from the release page.
1. Execute the `vsix` file.
    - Do not execute Visual Studio during this step. If executed, the process will wait infinitely.
1. Open Visual Studio and click `Continue without code`.
1. Enter [Tools] - [NuGet Package Manager] - [Package Manager Settings] - [NuGet Package Manager - Package Sources]
1. Click green `+` button to add new package source.
1. Set like the following. Then, click `Update`.
   - `Name` : write `Tizen.NET.SDK`
   - `Source`: write `https://tizen.myget.org/F/dotnet/api/v3/index.json`
1. <b>Only when</b> `nuget.org` is not found in `Available package sources`, follow below three steps.
    - Click green `+` button
    - Set `Name` as `nuget.org` and set `Source` as `https://api.nuget.org/v3/index.json`
    - Click `Update`
1. Click `OK`.

## Tutorial
Let's create nnpackage in Visual Studio!

1. Open Visual Studio.
1. Enter [File] - [New] - [Project].
1. Select `AI App Project` and click `Next`.
1. Click `Create`. (Default project name is `AIAppTemplate`)
1. A dialog pops up. Enter the path of your `model.pb` and `model.info` into the dialog.
    - In this version, names of model file and info file <b>must be</b> `model.pb` and `model.info`.
    - Detailed information about `.pb` file and `.info` file is in [getting_started](../v1.0.0/getting_started.md#12)
1. Open `AIAppTemplate_App.cs` in `AIAppTemplate` and build it.
1. If build succeeded, nnpackage will be found at `AIAppTemplate\res\shared` folder.
    ```
    AIAppTemplate\res\shared
        └ model
            ├ model.circle
            └ metadata
                └ MANIFEST
    ```