The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

Using Ext.NET self-built NuGet packages

  1. #1

    Using Ext.NET self-built NuGet packages

    This guide will walk you thru the steps to set up a NuGet local repository with Ext.NET built packages.

    To be able to do this, you'll neet latest Ext.NET sources, which is available to premium subscription users of Ext.NET. This feature has been available since Ext.NET version 4.2.0.

    This guide assumes you already have the sources and could successfully build it in Debug mode, at least and that your version of Visual Studio has a NuGet Package Manager version compatible with 4.1.0.2427. This version number is displayed in Package Manager Console tab (View menu > Other Windows > Package Manager Console).

    1. First, switch Ext.NET to Release configuration and build it. The build should take a considerable longer amount of time than the Debug Build, because it builds the NuGet packages in the process, which means it builds all possible Ext.NET configurations in Release Mode (MVC, WebForms, and the different .NET versions).

    2. On any running Visual Studio instance, open the NuGet Package Manager settings dialog as shown below:
    Click image for larger version. 

Name:	01.npm_settings.png 
Views:	3 
Size:	22.9 KB 
ID:	24987

    3. Switch to the 'Package Sources' options category and then click the '+' button at top-right of the dialog:
    Click image for larger version. 

Name:	02.npm_settings-add_new_repo.png 
Views:	3 
Size:	27.5 KB 
ID:	24988

    4. Give the package repository a name you'll remember will have the local NuGet packages and then browse for the src/bin/NuGet folder inside Ext.NET project repository.
    Click image for larger version. 

Name:	03.npm_settings-browse_folder.png 
Views:	3 
Size:	29.6 KB 
ID:	24990

    5. Chosen the folder, click 'Update' so that the package source above reflect the specified new settings:
    Click image for larger version. 

Name:	04.npm_settings-update_repo.png 
Views:	2 
Size:	27.5 KB 
ID:	24989

    6. Once the entry is updated, click 'ok' to dismiss the window and save the settings.

    7. Now open NuGet Package Manager itself, it can be done either from the Tools menu or from right-clicking the solution or any of the projects in Solution Explorer:
    Click image for larger version. 

Name:	06.npm-open.png 
Views:	1 
Size:	15.9 KB 
ID:	24991

    (continues below)
    Last edited by fabricio.murta; Jun 06, 2017 at 4:12 PM.
  2. #2
    8. Once the Package Manager is open, select the freshly created repository. Check 'include prerelease' if it is not, as the built NuGet packages will be pre-release ones:
    Click image for larger version. 

Name:	07.npm-select_repo.png 
Views:	1 
Size:	21.4 KB 
ID:	24992

    9. Then you will be able to browse the built NuGet packages and will be able to upgrade the NuGet package with the one from the repository.
    Click image for larger version. 

Name:	08.npm-packages_listing.png 
Views:	1 
Size:	29.6 KB 
ID:	24993

    That would be all necessary to use the self-built NuGet packages.

    Notice that when you rebuild the packages (in a same version) you may be required to remove the copy NuGet Package Manager makes in the client solution's packages/ directory (in this case, packages/Ext.NET.4.2.2-current/) before you can reinstall the NuGet package. Removing the NuGet package from the whole solution (from all projects in the solution) should be enough, but double-check the folder is gone before trying to update it. The NuGet package version number would only be increased after a public release.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] Ext is undefined & re-built Ext.Net
    By slavina in forum 2.x Premium Help
    Replies: 50
    Last Post: Dec 23, 2014, 4:36 PM
  2. [CLOSED] my project with ext 2.5.3 does not built
    By cottimucin in forum 2.x Premium Help
    Replies: 9
    Last Post: Nov 06, 2014, 5:42 AM
  3. Replies: 0
    Last Post: Jun 11, 2009, 10:48 PM
  4. are they in built method?
    By joydeepsen in forum 1.x Help
    Replies: 2
    Last Post: Jun 04, 2009, 4:18 AM
  5. [CLOSED] Will v0.6 be released/built under .net 2.0 framework
    By stevejebson in forum 1.x Premium Help
    Replies: 7
    Last Post: Sep 09, 2008, 7:35 PM

Tags for this Thread

Posting Permissions

Subscribe now to get the latest Ext.NET happenings in our newsletter.