Ticket T800588
Visible to All Users

How to use Libman in ASP.NET Core projects

created 6 years ago

[DevExpress Support Team: CLONED FROM T677350: Get rid of Bower and move to Libman in ASP.NET Core project templates]

Hi Maxim
Today I'm adding another library, not DevExtreme, using Libman and it is taking more than 15min and stuck in "Restoring library devextreme@19.1.3…" and nothing comes up.

Is there any solution for this? What is the Http address where the devextreme library is calling from (to check with my Firewall rules)?

Regards

Answers approved by DevExpress Support

created 6 years ago

Hello,

Check the Add Client-Side Resources documentation article to learn how to restore our libraries by using LibMan. Note that our packages can be restored only from the local drive by this guide.
If you are using the approach demonstrated in the Get rid of Bower and move to Libman in ASP.NET Core project templates ticket, make sure the http://unpkg.com website is whitelisted.

    Show previous comments (1)
    Alisher (DevExpress Support) 5 years ago

      Hi,

      Would you please share the libman.json file so that I can examine it?

      WG WG
      Wilfredo Gutierrez 5 years ago

        Here my libman.json:

        C#
        { "version": "1.0", "defaultProvider": "cdnjs", "libraries": [ { "provider": "unpkg", "library": "jquery@3.4.1", "destination": "wwwroot/lib/jquery/" }, { "provider": "unpkg", "library": "jquery-validation@1.19.1", "destination": "wwwroot/lib/jquery-validation/" }, { "provider": "unpkg", "library": "jquery-validation-unobtrusive@3.2.11", "destination": "wwwroot/lib/jquery-validation-unobtrusive/" }, { "provider": "unpkg", "library": "bootstrap@4.3.1", "destination": "wwwroot/lib/bootstrap/" }, { "provider": "unpkg", "library": "fontawesome@5.6.3", "destination": "wwwroot/lib/fontawesome/" }, { "provider": "unpkg", "library": "devextreme@19.2.3", "destination": "wwwroot/lib/devextreme/" }, { "provider": "unpkg", "library": "devextreme-aspnet-data@2.5.1", "destination": "wwwroot/lib/devextreme/dist/js/" } ] }
        Alisher (DevExpress Support) 5 years ago

          Hello Wilfredo,

          Thank you for sharing the file. It was helpful. The issue does not directly relate to our libraries. Microsoft's Library Manager has several issues that may prevent our packages from being restored from the the http://unpkg.com website:

          https://github.com/aspnet/LibraryManager/issues/370
          https://github.com/aspnet/LibraryManager/issues/512
          https://github.com/aspnet/LibraryManager/issues/491

          As you can see, these issues are not fixed yet. I suggest that you restore libraries from a local disc by using the filesystem provider. Check the Add Client-Side Resources help topic for more information.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.