# Where do I put license info (.licx) in a .NET Core application?

**URL:** https://talk.remobjects.com/t/where-do-i-put-license-info-licx-in-a-net-core-application/17245
**Category:** Data Abstract
**Tags:** visual-studio, net
**Created:** [August 22, 2018, 2:05pm UTC](https://talk.remobjects.com/t/where-do-i-put-license-info-licx-in-a-net-core-application/17245 "2018-08-22T14:05:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Chronicle](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@Chronicle](https://talk.remobjects.com/u/Chronicle)
#### Post date: [August 22, 2018, 2:05pm UTC](https://talk.remobjects.com/t/where-do-i-put-license-info-licx-in-a-net-core-application/17245/1 "2018-08-22T14:05:33Z")

</div>

DataAbstract v9.4.109.1377

I have created a .NET Core 2.1 class library. Using the libraries in the RemObjects\>Data Abstract for .NET\> .NETStandard folder. When I compile it I get the following error message:

> **.net core LicenseException: No valid license has been found for the type RemObjects.DataAbstract.BaseDataAdapter**

I am not sure where to put the license file?

Thanks,  
Todd

---

<div class="post-metadata">

### Author: ![antonk](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/a5b964/32.png) [@antonk](https://talk.remobjects.com/u/antonk)
#### Post date: [August 22, 2018, 4:55pm UTC](https://talk.remobjects.com/t/where-do-i-put-license-info-licx-in-a-net-core-application/17245/3 "2018-08-22T16:55:32Z")

</div>

Hello

You need to add .licx to the ClassLibrary.

Here is how I did test that:

I’ve just created a simple .NET Core 2.1 project as follows:

1.Created a new .NET Core Console App  
2.Added a .NET Core Class Library project to the solution  
3.Added references to the .NETStandard assemblies  
4.Added the following code to the Class Lib project:

```
using RemObjects.DataAbstract.Linq;

namespace ClassLibrary1
{
	public class DataModule
	{
		public DataModule()
		{
			this.DataAdapter = new LinqRemoteDataAdapter("http://localhost:8099/bin");
		}

		public LinqDataAdapter DataAdapter { get; }
	}
}

```

5.Added the licenses.licx file as EmbeddedResource to the **ClassLibrary** project with the following line in it:

```
RemObjects.DataAbstract.Linq.LinqRemoteDataAdapter, RemObjects.DataAbstract

```

6.Added a class lib reference to the console app project  
7.Set console app code to

```
using System;

namespace ConsoleApp4
{
	static class Program
	{
		static void Main(string[] args)
		{
			try
			{
				var dataModule = new ClassLibrary1.DataModule();
				Console.WriteLine(dataModule.DataAdapter.GetType());
			}
			catch (Exception e)
			{
				Console.WriteLine(e);
			}
			Console.WriteLine("Done");
			Console.ReadLine();
		}
	}
}

```

8.Started the app and it was able to instantiate the Data Adapter

Hope that helps

---

<div class="post-metadata">

### Author: ![Chronicle](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@Chronicle](https://talk.remobjects.com/u/Chronicle)
#### Post date: [August 22, 2018, 6:16pm UTC](https://talk.remobjects.com/t/where-do-i-put-license-info-licx-in-a-net-core-application/17245/4 "2018-08-22T18:16:44Z")

</div>

It helps immensely.

Todd

---

<div class="post-metadata">

### Author: ![landrix](https://talk.remobjects.com/user_avatar/talk.remobjects.com/landrix/32/9881_2.png) [@landrix](https://talk.remobjects.com/u/landrix)
#### Post date: [August 23, 2018, 9:10am UTC](https://talk.remobjects.com/t/where-do-i-put-license-info-licx-in-a-net-core-application/17245/5 "2018-08-23T09:10:02Z")

</div>

CrossPost

> <https://stackoverflow.com/questions/51955966/where-do-i-put-license-info-licx-in-a-net-core-application>
