How to add DLL reference in C# Project with .NET Core 3.1?

Nowadays, applications development with .NET Core are become very popular among developers. This is because it’s allowed the same code to run on cross OS platforms. So we should know how we can add the any existing DLL to your new Core project. It is pretty simple and here you go.

Step 1. Open your .NET Core project file in notepad or some text editor.
e.g. MyFirstProject.csproj

Step 2. Add the following DLL reference before the </Project> tag.

<reference include="Utilities">
        <hintpath>DLLFolder/Utilities.dll</hintpath>
    	<specificversion>False</specificversion> 
</reference>

That’s it.

Leave a Reply

Your email address will not be published.