# Lock An Assembly

Protect an assembly and configure the inbuilt locks that control its use.

# 1. Open your project

Open a new or saved .NET Reactor project.

# 2. Select the assemblies

On the Files page, select your assemblies and configure basic protection. Select Library or Application to match the main assembly you want to protect and lock.

Select the main assembly on the Files page
Select the main assembly on the Files page

# 3. Configure protection

On the Settings page, configure the protection options for your assembly.

Configure the protection options on the Settings page
Configure the protection options on the Settings page

# 4. Configure the locks

Configure Lock Settings for the assembly. See How Locks Work for an introduction to software and license locks.

Configure the inbuilt locks for the protected assembly
Configure the inbuilt locks for the protected assembly

# 5. Protect the assembly

Click Protect on the Tasks Panel.

Start protection from the Tasks Panel
Start protection from the Tasks Panel

# 6. Prepare and test the output

The protected output is saved to the indicated subdirectory. You can test it there or copy it to a separate test directory.

Review the output location after protection completes
Review the output location after protection completes

# 7. Save your project

Save the project after configuring and protecting your assembly.

# Next steps

Continue with Unlock A Locked Assembly to create and deploy a license file.

# Related topics

Create a trial version · Offline licensing