Installation
Installing Aspose.Drawing for .NET through NuGet
NuGet is the easiest way to download and install Aspose APIs for .NET. Open Microsoft Visual Studio and NuGet package manager. Search “aspose” to find the desired Aspose API. Click on “Install”, the selected API will be downloaded and referenced in your project.
You can select from Aspose.Drawing and Aspose.Drawing.Common packages. Aspose.Drawing package uses System.Drawing namespace and can be used to replace System.Drawing.Common without changing source code. Aspose.Drawing.Common package uses Aspose.Drawing namespace and can be used side-by-side with System.Drawing.Common.
Install or Update Aspose.Drawing using the Package Manager Console
You can follow the steps below to reference the Aspose.Drawing API using the package manager console:
- Open your solution/project in Visual Studio.
- Select Tools -> Library Package Manager -> Package Manager Console from the menu to open package manager console.
Type the command “Install-Package Aspose.Drawing” and press enter to install the latest full release into your application. Alternatively, you can add the “-prerelease” suffix to the command in order to specify that the latest release including hotfixes is to be installed as well.
If you are not familiar with the Aspose EULA then it is a good idea to read the license referenced in the URL.
You should now find that Aspose.Drawing has successfully been added and referenced in your application for you.
In the package manager console, you can also use the command “Update-Package Aspose.Drawing” and press enter to check for any updates to the Aspose.Drawing package and install them if present. You can also add the “-prerelease” suffix to update the latest release.
Referencing the Library
In order to use the library in your application, add a reference to it. The steps that follow describe what to do when you use Visual Studio.
- In the Solution Explorer, expand the project node you want to add a reference to.
- Right-click the References node for the project and select Add Reference from the menu.
- If you have used MSI installer to install Aspose.Drawing or if you have downloaded and unpacked the DLL only, click the Browse button and locate the Aspose.Drawing.dll file.
- Click OK. An Aspose.Drawing reference appears under the References node of the project.
Uninstalling Aspose.Drawing for .NET
If you have used MSI installer to deploy Aspose.Drawing, follow these steps to completely remove the library and the associated demos and documentation:
- From the Start menu, select Settings followed by Control Panel.
- Click Add/Remove Programs.
- Select Aspose.Drawing for .NET.
- Click the Change/Remove button to remove Aspose.Drawing.