csharpschool / VideoOnDemandCore2

This code is for the ASP.NET Core 2.0 Video On Demand Web Application.
10 stars 10 forks source link

Use LibMan instead of Bower #12

Open csharpschool opened 5 years ago

csharpschool commented 5 years ago

Microsoft is moving away from Bower, to install client/side libraries, you should use a LibMan.json file instead and the Add-Client-Side Library option on the Project node in the Solution Explorer.

Read more Here: https://docs.microsoft.com/en-us/aspnet/core/client-side/libman/libman-vs?view=aspnetcore-2.2 And here: https://docs.microsoft.com/en-us/aspnet/core/client-side/libman/?view=aspnetcore-2.2

delaroc2 commented 5 years ago

Hello, I am trying to use Add-Client Side Library (LibMan) but I can't find the option for Bootstrap. There seems to be many Bootstrap parts but not one whole Bootstrap (see picture attached). Which one is the correct? Also the "JQuery-validation" is not there. Is it the jQuery-Validation-Engine? (see picture attached)

So do you still recommend the LibMan method over the Bower method?

Thank you very much for your help.

Regards!

jquery-validation

bootstrap

csharpschool commented 5 years ago

Hi, Search for twitter-bootstrap

/Jonas

On Mon, Feb 4, 2019 at 6:23 AM delaroc2 notifications@github.com wrote:

Hello, I am trying to use Add-Client Side Library (LibMan) but I can't find the option for Bootstrap. There seems to be many Bootstrap parts but not one whole Bootstrap (see picture attached). Which one is the correct? Also the "JQuery-validation" is not there. Is it the jQuery-Validation-Engine? (see picture attached)

So do you still recommend the LibMan method over the Bower method?

Thank you very much for your help.

Regards!

[image: jquery-validation] https://user-images.githubusercontent.com/7139424/52191450-87313600-27f9-11e9-809e-866ba6b77963.PNG

[image: bootstrap] https://user-images.githubusercontent.com/7139424/52191439-77195680-27f9-11e9-9849-a6bef91109d8.PNG

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/csharpschool/VideoOnDemandCore2/issues/12#issuecomment-460134452, or mute the thread https://github.com/notifications/unsubscribe-auth/AYGJhRMOtdQxV7yMHZZ8Ux86qreWjtx0ks5vJ8PEgaJpZM4aOVI5 .

csharpschool commented 5 years ago

I'm sorry for the delayed response. LibMan is the way to move forward since Bower will be removed. Try these settings in LibMan and see if it works better. Change the versions to suit your requirements.

{ "version": "1.0", "defaultProvider": "cdnjs", "libraries": [

{
  "provider": "cdnjs",
  "library": "jquery@3.3.1",
  "destination": "wwwroot/lib/jquery/"
},
{
  "provider": "cdnjs",
  "library": "jquery-validate@1.19.0",
  "destination": "wwwroot/lib/jquery-validate/"
},
{
  "provider": "cdnjs",
  "library": "jquery-validation-unobtrusive@3.2.11",
  "destination": "wwwroot/lib/jquery-validation-unobtrusive/"
},
{
  "provider": "cdnjs",
  "library": "twitter-bootstrap@4.3.1",
  "destination": "wwwroot/lib/twitter-bootstrap/"
}

] }

Regards, Jonas

On Mon, May 27, 2019 at 5:51 PM kurtisas-k notifications@github.com wrote:

I'm super disappointed for the lack of support on this issue. A couple links out to MS docs could probably be substituted by a quick tutorial for getting the project back on track. I realize the implicit communication is you're on your own - which is to some extent fair - but for certain if there's an updated title on the basis of this alone I won't be partaking.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/csharpschool/VideoOnDemandCore2/issues/12?email_source=notifications&email_token=AGAYTBN2KGG3CKV7AK47ELLPXP7QPA5CNFSM4GRZKI42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWKDSQY#issuecomment-496253251, or mute the thread https://github.com/notifications/unsubscribe-auth/AGAYTBKFMRVMLOZBL4ZCWDTPXP7QPANCNFSM4GRZKI4Q .

kurtisas-k commented 5 years ago

I actually ended up deleting the comment, it was my fault. I skipped a line on one of the pages (enabling static files) and that was my actual problem. What was posted here got me going (the screenshots were a huge help).

Thanks for your attentiveness, this book has been a really good experience.

csharpschool commented 5 years ago

Thank you, I'm glad you like the book and learn from it; that's what's most important to me.

Regards, Jonas

On Thu, May 30, 2019 at 2:20 PM kurtisas-k notifications@github.com wrote:

I actually ended up deleting the comment, it was my fault. I skipped a line on one of the pages (enabling static files) and that was my actual problem. What was posted here got me going (the screenshots were a huge help).

Thanks for your attentiveness, this book has been a really good experience.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/csharpschool/VideoOnDemandCore2/issues/12?email_source=notifications&email_token=AGAYTBJK26IKC4AC4CV77BTPX7BCDA5CNFSM4GRZKI42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWSFYHQ#issuecomment-497310750, or mute the thread https://github.com/notifications/unsubscribe-auth/AGAYTBK7ROR3YIBEWOGME73PX7BCDANCNFSM4GRZKI4Q .