Тёмный

.Net Core - Creating a Nuget Package 

AngelSix
Подписаться 61 тыс.
Просмотров 18 тыс.
50% 1

In order to better share and use the Dna.Framework project, we create a NuGet package for it easily and push it live to NuGet.org.
I show you have to easily create a NuGet account, setup a .Net Standard class library ready for generating a NuGet package, and then how to push it to NuGet.org website.
Source Code: github.com/angelsix/dna-frame...
Support me on Patreon: / angelsix

Наука

Опубликовано:

 

8 фев 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@RioTheHitman
@RioTheHitman 6 лет назад
Dude this came just in time just started moving assemblies over to NuGet thanks bro
@AngelSix
@AngelSix 6 лет назад
Your welcome
@crazytk16
@crazytk16 4 года назад
Exactly what I needed!
@bezraboten3427
@bezraboten3427 6 лет назад
Great video. Thank you!
@AngelSix
@AngelSix 6 лет назад
Thanks
@MrThem0
@MrThem0 6 лет назад
You can see your "secret" key in Cmd's window title, better change it :)
@AngelSix
@AngelSix 6 лет назад
Thanks for the catch. Changed it anyway now :)
@davidkeylock7840
@davidkeylock7840 3 года назад
Best video on the subject I've found, thanks
@jameswaichungo7306
@jameswaichungo7306 6 лет назад
Thanks again for this great tutorial
@AngelSix
@AngelSix 6 лет назад
No problem
@joshibhushan1
@joshibhushan1 Год назад
When I am performing pack operation for the project then projectName.nupkg is not getting created. VSTS2022. Any idea ?
@chhinsras
@chhinsras 2 года назад
I have extension method for IServiceCollection and create nuget package. but it is not assisble, why?
@tomas120
@tomas120 6 лет назад
Hey Luke. Thanks for the tutorial. Is there any way to make the package private? Only accesible by me or a group of people? Or you know a tool that updates automatically the .dll from all projects that uses it as reference? so that it is not necessary to delete the reference and add it again
@AngelSix
@AngelSix 6 лет назад
You can host your own nuget feed to keep it private docs.microsoft.com/en-us/nuget/hosting-packages/overview
@TurboTheo13
@TurboTheo13 5 лет назад
You could save your key in order to speedup your deployment. nuget SetApiKey
@MultiMinors
@MultiMinors 6 лет назад
Can i take your animation attached properties into different project, edit it by myself, add new animations, edit a bit firstload mechanic, add new animation directions and make it as NuGet Package? How to credit you properly? Or, maybe you can make something like this by yourself?
@AngelSix
@AngelSix 6 лет назад
Sure you can do that. If you want to show credits perhaps just add it in the project description of the nuget package?
@AgentFire0
@AgentFire0 5 лет назад
Hi. How can I get this dark explorer mode?
@AngelSix
@AngelSix 5 лет назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vBtFcHB8RUY.html
@patrikbak8161
@patrikbak8161 6 лет назад
Nice and easy :) But how do you make that IntelliSense shows the documentation to methods from the package?
@haydensprogramming6766
@haydensprogramming6766 6 лет назад
Use XML comment on methods by using the /// comments
@AngelSix
@AngelSix 6 лет назад
As Hayden said, thats why all my code has XML comments (the /// stuff, all that is then visible when using it)
@patrikbak8161
@patrikbak8161 6 лет назад
I'm very aware of XML comments :) My point is: I installed Dna.Framework package and IntelliSense doesn't show any documentation of its methods. image.prntscr.com/image/kdvvXgRxSaSdFAA_WiAVgw.png
@AngelSix
@AngelSix 6 лет назад
Ah yes it needs the project properties Build > Generate XML Documentation checked. I'll do that on the next push tomorrow
@patrikbak8161
@patrikbak8161 6 лет назад
Alright, thank you :)
@RioTheHitman
@RioTheHitman 6 лет назад
AngelSix what would be the easiest way to convert a .Netframework based library to a standard library? Possible vid
@AngelSix
@AngelSix 6 лет назад
I believe .Net 2.0 is 100% compatible now with a .Net Framework class library other than any third party references. Could be wrong, but start with making a new .Net Standard library, copy/paste all the code files and project structure into the new project and try building.
@RioTheHitman
@RioTheHitman 6 лет назад
AngelSix Thanks my man that worked like a charm
@AngelSix
@AngelSix 6 лет назад
Perfect
@omartalaat6932
@omartalaat6932 6 лет назад
Thanks for the video, I will like to know how can I update my created package
@AngelSix
@AngelSix 6 лет назад
You just change your code, update the `Package` pages version in the project properties, build another nuget file and publish it. NuGet.org then realizes its a newer version and updates your package
@omartalaat6932
@omartalaat6932 6 лет назад
wonderful, I want to know, if I can connect the NuGet to GitHub? I mean that, I change my project in GitHub and the change will run directly in NuGet. is this possible ?
@AngelSix
@AngelSix 6 лет назад
Omar Talaat I don't believe so no. You could setup a git hook to react to commits and automatically do that for you though with not much problem but you would have to increment your build number every commit then
@omartalaat6932
@omartalaat6932 6 лет назад
At the Moment i am using MyGet, but i am getting just Failed
@semen083
@semen083 6 лет назад
Why Kaspersky?
@AngelSix
@AngelSix 6 лет назад
Yeah anti-virus stuff is always under controversy because of the nature of protecting against viruses the people operating the companies are typically black hats themselves. Kaspersky was by far the best 2 years ago. I'm looking at moving to Bit Defender next. Uk based company too.
@riky8111
@riky8111 6 лет назад
Hello, I'm here about dna web. I do often use variables, and what kind of bothers me is, you cant make variable icon like this: " " All is linked correctly. I've tried including header to file _variables.dhtml, doesnt work. Would appreciate this feature! There's a change that i might do something wrong, and I can't figure it out. Using variable like this " $$Bitcoin$$ . Dnaweb log doesn't complain, just says "Successfully processed".
@riky8111
@riky8111 6 лет назад
Shouldn't variables replace text where you use them? I don't know if I am correct with this statement.
@AngelSix
@AngelSix 6 лет назад
lolRiky the data is XML format so you need to escape XML special characters like < and > in the value. Just Google XML special escaped characters
@riky8111
@riky8111 6 лет назад
Oh yea, didn't think about that one. It works now. Thank you so much.
@christianschulz4475
@christianschulz4475 6 лет назад
your key is in the window title
@AngelSix
@AngelSix 6 лет назад
Christian Schulz yeah thanks for the catch. I changed it right after the video
Далее
C# Creating NuGet Package for .Net Framework Project
13:58
БИМ БАМ БУМ💥
00:14
Просмотров 4 млн
Meninas na academia
00:11
Просмотров 2,1 млн
Turns out REST APIs weren't the answer (and that's OK!)
10:38
.Net Core - Dependency Injection
49:06
Просмотров 34 тыс.
.Net Core - Extension Methods C#
53:14
Просмотров 10 тыс.
.Net Core - Server Client Web API HTTP
1:32:22
Просмотров 17 тыс.
Don't throw exceptions in C#. Do this instead
18:13
Просмотров 255 тыс.
3 ways to reduce the size of your docker images
17:20
Просмотров 4,9 тыс.
CrowdStrike IT Outage Explained by a Windows Developer
13:40
Telefonu Parçaladım!😱
0:16
Просмотров 30 млн