# vs code with example code error

**URL:** https://forum.legato.io/t/vs-code-with-example-code-error/5106
**Category:** Legato Application Framework
**Created:** [March 26, 2020, 7:54am UTC](https://forum.legato.io/t/vs-code-with-example-code-error/5106 "2020-03-26T07:54:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![eshwar1](https://avatars.discourse-cdn.com/v4/letter/e/ecb155/32.png) [@eshwar1](https://forum.legato.io/u/eshwar1)
#### Post date: [March 26, 2020, 7:54am UTC](https://forum.legato.io/t/vs-code-with-example-code-error/5106/1 "2020-03-26T07:54:48Z")

</div>

Hello,

I am trying to build an example app from GitHub with vs code and legato plugin. I am getting error as

identifier “le\_avdata\_AssetInstanceRef\_t” is undefined

I have previously built and tested the first app on target wp7608  
I am not sure what files are having such defines or why are they not included in the dev environment. Attaching screen capture for reference. Any suggestions will help

Thanks,  
Eshwar

 ![scr](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/e21335829f25e83fa6942f7bf6f685c71ef0438a.png)

---

<div class="post-metadata">

### Author: ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)
#### Post date: [July 2, 2020, 9:02am UTC](https://forum.legato.io/t/vs-code-with-example-code-error/5106/2 "2020-07-02T09:02:47Z")

</div>

@eshwar1, you need to include this API in your .adef/.cdef file
