Installing NUGET Packages for Dynamics NAV


One thing Arend Jan inspired me with at NAVTechDays is to start using NUGET packages in Dynamics NAV.

What the *** is a NUGET package

From https://www.nuget.org/:

“NuGet is the package manager for the Microsoft development platform including .NET. The NuGet client tools provide the ability to produce and consume packages. The NuGet Gallery is the central package repository used by all package authors and consumers.”

So Microsoft Dynamics NAV with C/AL is part of the Microsoft Development Platform. (Ugh Ugh Ugh). So how do we use it.

Arend Jan Explains:

Visual Studio

In VS we have to create an empty project. Just create a C# Console project.

Open the package manager console View -> Other Windows -> Package Manager Console

Packagemanagerconsole

In the window we get now we copy and paste the text from the NUGET page. In my case I want to use a PDF package to see if I can print PDF from NAV. (You can guess my next blogpost).

Nuget Install Package

This is what we should have in the window after executing the command:

PackageManagerConsoleResult

So we can go to our project folder and get the DLL, and place it in the Dynamics NAV Add-In folder.

AddInsFolder

And Voila

PDFPrintFromNAV

Now let me see if I can get this thing to work…

Advertisements
This entry was posted in Dynamics NAV. Bookmark the permalink.

2 Responses to Installing NUGET Packages for Dynamics NAV

  1. Pingback: Installing NUGET Packages for Dynamics NAV - Mark Brummel - Author of Microsoft Dynamics NAV 2013 Application Design

  2. Pingback: Print Existing PDF in Dynamics NAV using DotNET | NAV Skills Blog | Microsoft Dynamics

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s