Web API Edition | ComponentOne
Web API / Installation
In This Topic
    Installation
    In This Topic

    Download the installer, C1StudioInstaller.exe from https://developer.mescius.com/componentone. Follow the steps through the installation wizard to install the ASP.NET DLLs and templates for Web API Edition, its dependency DLLs, stylesheets and scripts.

    Web API services are provided as Visual Studio template, which is available after installation of Web API Edition. Once you create Web API service application using the ComponentOne template on Visual Studio, the template adds the references C1.Web.API.dll, C1.C1Excel.dll, and other related assemblies to your service project.

    Note: It is advisable that you either log off or restart your Windows 10 machine once you have installed the Web API Edition, and then create the service application, so that the required Environment Variables are set. However, if you install the Web API Edition in Windows 10 followed by creating the service application, the required Environment Variables are not set.   

    Samples

    Samples for the product are installed in the ComponentOne samples folder by default.

    Documents\ComponentOne Samples\Web Api

    Note: In case you get any missing assembly errors while running the sample, you need to add the required references from the NuGet source.

    To Add Web API Libraries from NuGet

    ComponentOne Web API libraries are provided through NuGet, a Visual Studio extension that automatically adds libraries and references to your project. You can add the following NuGet packages for Web API to your Web API service application from NuGet, which is available in Visual Studio once Web API Edition is installed.

    To Install NuGet

    1. Go to https://www.nuget.org/ and click Install NuGet.
    2. Run the NuGet.vsix installer.
    3. In the Visual Studio Extension Installer window, click Install.
    4. Once the installation is complete, click Close.

    To Add Web API References to your Service Application

    1. Create a new Web API project (refer to Configuring Web API).
    2. In the Solution Explorer, right click References and select Manage NuGet Packages.
    3. In NuGet Package Manager, select the package source.
    4. Select the NuGet package according to your project requirements.
    5. Click Install.

    To Manually Create NuGet Package Source

    1. In Visual Studio, from the Tools menu select NuGet Package Manager | Package Manager Settings. The Options dialog box appears.
    2. In the left pane, select NuGet Package Manager | Package Sources.
    3. Click the Add button in top right corner. A new source is added under Available package sources.
    4. Set a Name for the new package source, and set the Source as https://www.nuget.org/.
    5. Click Update and then click OK.

    NuGet package source has been created.

    See Also