# Referencing Assemblies

## Class Libraries

When building class libraries that target .NET 6+, the assemblies that are referenced via NuGet will not be copied to the bin folder **unless** the following element is added to the library's **csproj** file:

{% code title="App.csproj" %}

```
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
```

{% endcode %}

{% hint style="info" %}
All referenced assemblies should be copied automatically in **.NET Framework**.
{% endhint %}

## Dynamic Assemblies

If a project or assembly reference is not used in the main Wisej.NET project, the referenced project's dependencies will not be loaded into the App Domain automatically.

{% hint style="info" %}
In **.NET Framework**, any assembly referenced by the main Wisej.NET project would have it's dependencies loaded into the App Domain.
{% endhint %}

**For example:**

If you create a custom control library that implements a custom **Bubbles** notification that gets dynamically injected into the main Wisej.NET project, you will need to call **Application.LoadAssembly()** on **Wisej.Web.Ext.Bubbles** to load the custom library's dependency into the Wisej.NET project.
