Skip to content

Commit

Permalink
Fix FULLSTACK-134 (neo-project#823)
Browse files Browse the repository at this point in the history
* Fix FULLSTACK-134

Fix http://47.102.110.9:8080/projects/FULLSTACK/issues/FULLSTACK-134?filter=myopenissues

* Update getting-started-csharp.md

* minor updates

* Update getting-started-csharp.md
  • Loading branch information
Celia18305 authored Jun 5, 2019
1 parent 44729de commit 304e989
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
Binary file modified assets/download_and_install_smart_contract_plugin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion en-us/sc/quickstart/getting-started-csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ We currently recommend C# for developing smart contracts (though we support or p
This section contains a short tutorial that guides you in configuring the C# development environment for NEO smart contracts. It also gives you an idea of ​​how to create a smart contract project and how to compile it.

   > [!Note]
   >
   > At present, all the projects have been upgraded to the Visual Studio 2017 version. If you want to use Visual Studio 2015 to create intelligent contracts, refer to [how to use C # to write NEOs intelligent contract for VS2015](getting-started-2015.md).

## Development Tools
Expand All @@ -29,7 +30,7 @@ The installation process is very simple, just follow the operation prompts step-

Installation method:

Open Visual Studio 2017, open Tools, click on Extensions and Updates, click on the Online tab on the left side of the window, search NEO in the search box on the top right corner of the window, download the NeoContractPlugin (this step requires internet access).
Open Visual Studio 2017, open Tools, click on Extensions and Updates, click on the Online tab on the left side of the window, search NEO in the search box on the top right corner of the window, download the latest stable version of NeoContractPlugin (Currently it is 2.9.3). This step requires internet access.

![download and install NEO smart contract plugin](../../../assets/download_and_install_smart_contract_plugin.png)

Expand Down Expand Up @@ -104,4 +105,14 @@ After you compile it successfully you will see `SmartContract1.avm` in the `bin/

![compile smart contract](../../../assets/compile_smart_contract.png)

> [!Note]
>
> - Given that neon compiles .dll with nep-8 by default, which conflicts with older versions of NeoVM, you need to execute .dll using the neon compatible mode; otherwise the contract cannot be invoked properly.
>
> Open Power Shell or command prompt (CMD), enter bin/Debug directory and input the following command:
>
> `neon yourcontractname.dll --compatible`
>
> - For other issues you encounter during the process of setting up the smart contract development environment, refer to [FAQ](../../faq.md).
Now that you have completed the configuration of the NEO smart contract development environment.
Binary file modified zh-cn/sc/assets/download_and_install_smart_contract_plugin.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions zh-cn/sc/quickstart/getting-started-csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

安装方法:

打开 Visual Studio 2017,打开 ` 工具 ` ` 扩展和更新 ` ,在左侧点击 ` 联机 ` 搜索 Neo安装 NeoContractPlugin 插件(该过程需要联网)
打开 Visual Studio 2017,打开 ` 工具 `> ` 扩展和更新 ` ,在左侧点击 ` 联机 ` > 搜索 Neo > 安装 NeoContractPlugin 插件的最新稳定版(目前为 2.9.3)。该过程需要联网。

![](../assets/download_and_install_smart_contract_plugin.jpg)

Expand Down Expand Up @@ -93,7 +93,13 @@ Windows7 SP1 - Windows8.1 系统:右击 `计算机` ->`属性` ->`高级系统

>[!Note]
>
>关于在配置智能合约开发环境中遇到的常见问题,可以参考 [FAQ](../../faq.md#智能合约)
>- 由于 neon 默认使用 nep-8 的模式编译 dll,与旧版本 NeoVM 不兼容,所以我们需要用编译器的 compatible 模式编译,否则调用合约时会出错。
>
> 打开Power Shell 或命令提示符(CMD),进入 bin/Debug 目录,输入如下命令:
>
> `neon yourcontractname.dll --compatible`
>
>- 关于在配置智能合约开发环境中遇到的常见问题,可以参考 [FAQ](../../faq.md#智能合约)
现在,你已经完成了 NEO 智能合约开发环境的配置。

0 comments on commit 304e989

Please sign in to comment.