diff options
Diffstat (limited to 'docs/nncc/v1.1.0/nncc_in_visual_studio.md')
-rw-r--r-- | docs/nncc/v1.1.0/nncc_in_visual_studio.md | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/docs/nncc/v1.1.0/nncc_in_visual_studio.md b/docs/nncc/v1.1.0/nncc_in_visual_studio.md new file mode 100644 index 000000000..bc9e59fa9 --- /dev/null +++ b/docs/nncc/v1.1.0/nncc_in_visual_studio.md @@ -0,0 +1,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 + ``` |