# AerospikeClient Build/Compile Error In Visual Studio 2015

**URL:** https://discuss.aerospike.com/t/aerospikeclient-build-compile-error-in-visual-studio-2015/1397
**Category:** C# Client
**Created:** [June 19, 2015, 8:41am UTC](https://discuss.aerospike.com/t/aerospikeclient-build-compile-error-in-visual-studio-2015/1397 "2015-06-19T08:41:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Pavan\_Kumar](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Pavan\_Kumar](https://discuss.aerospike.com/u/Pavan_Kumar)
#### Post date: [June 19, 2015, 8:41am UTC](https://discuss.aerospike.com/t/aerospikeclient-build-compile-error-in-visual-studio-2015/1397/1 "2015-06-19T08:41:22Z")

</div>

When we have added a reference to aerospikeclient in visual studio 2015 vNext project using Nuget package manager, it shows build error. Please help me to resolve this issue asap.

---

<div class="post-metadata">

### Author: ![iamontheinet](https://avatars.discourse-cdn.com/v4/letter/i/b3f665/32.png) [@iamontheinet](https://discuss.aerospike.com/u/iamontheinet)
#### Post date: [June 23, 2015, 9:51pm UTC](https://discuss.aerospike.com/t/aerospikeclient-build-compile-error-in-visual-studio-2015/1397/2 "2015-06-23T21:51:39Z")

</div>

Hey Pavan\_Kumar,

Are you referring to build errors with code **CS0246**? If so, in Solution Explorer check under **References** and you will see two frameworks **DNX 4.5.1** and **DNX Core 5.0**. What you need to do is remove DNX Core 5.0. Here’s how:

- Open **project.json**

- Look for

and **replace it** with…

```
     "frameworks": {
        "dnx451": { }
     }

```

- Save **project.json** — this will trigger package restore process. Once that process completes, build errors with code **CS0246** related to Aerospike references will resolve themselves.

Here’s my setup:

Visual Studio 2015 RC running on Windows 10 Pro Insider Preview which is installed on a VM and the C# web app (successfully) connects to Aerospike DB running on a different VM.

I hope this helps. If not, please send us more details about the error(s) and your environment including versions.

Best,

Dash
