Creating NuGet Packages the easy way with .NET Standard in C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 217

  • @haozheng8400
    @haozheng8400 2 ปีที่แล้ว +3

    I'm about to start working as a release manager for the first time. Your video really helps me understand what nuget package is , why we need it and how we use it! Thank you for your selfless sharing!!!

    • @IAmTimCorey
      @IAmTimCorey  2 ปีที่แล้ว +1

      Awesome! I’m glad it was helpful.

  • @bobkerman2419
    @bobkerman2419 5 ปีที่แล้ว +25

    Thank you Tim, your Tutorial are awesome and professional as always.
    I'm surprised that you only have 75K subscribers

    • @samuelketels919
      @samuelketels919 5 ปีที่แล้ว +1

      I share the same surprise, if you want to have a good understanding what you are doing, his tutorials are amazing. I'm in a lot developer groups and I can't tell how many times I said 'check out Tim Corey on TH-cam'.

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      @Bob - Thank you. I appreciate the kind words.
      @Samuel - Thanks for the recommendations!

    • @holger_p
      @holger_p ปีที่แล้ว

      3 years later it's 500% more subscribers. For special interest, it just takes longer, but videos are viewed over a period of 10 years or so. Not just the 10 days after release.

  • @emersonstori
    @emersonstori ปีที่แล้ว +1

    Hello, I had looked for an explanation on this subject and even found several published by people of my nationality, but even though I used the automatic translator on TH-cam to help me with your videos, your teaching is incredible. I'm a big fan of yours, congratulations 👏👏

    • @IAmTimCorey
      @IAmTimCorey  ปีที่แล้ว +2

      I am glad it was helpful.

  • @sephiroth4488
    @sephiroth4488 3 ปีที่แล้ว +2

    CI/CD was always pretty daunting for me and with your help I just set up my first full pipeline. Thank you so much!

  • @kinsondigital
    @kinsondigital 5 ปีที่แล้ว +6

    Very awesome. I have already been doing this and its great. I have 8 different libraries that are all part of a large project and with all the CI/CD setup and the Nuget packages setup, it makes life so much easier. I love what MS is doing with Azure Devops and the direction they are taking with the NET stack.

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว

      Sounds great! Azure DevOps is an amazing productivity tool for developers.

  • @alanrosetrimble
    @alanrosetrimble 2 ปีที่แล้ว +1

    Great tutorial. Looks like some things have changed in Visual Studio 2022, but basically it is the same. Build pipeline stuff at end was a nice bonus.

  • @LDdrums20
    @LDdrums20 2 ปีที่แล้ว +3

    The word that you were looking for was product of the numbers

  • @bohuang3122
    @bohuang3122 2 ปีที่แล้ว +2

    It's my second time to watch this video and really find it's helpful! It let me understand how it works underneath our big project and how we coordinate each other.

    • @IAmTimCorey
      @IAmTimCorey  2 ปีที่แล้ว

      Awesome! I am glad it has been so helpful.

  • @shanmukhapatil7131
    @shanmukhapatil7131 ปีที่แล้ว +3

    Hi Tim, great video.
    Could you please make part 2 of this video and add a debugging part.
    Like when you link it, if we have errors we need to check for the error, please add that part . 😊
    And which all files need to add(like .pdb)

  • @Vietnamkid1993
    @Vietnamkid1993 2 ปีที่แล้ว +2

    Private nuget packages. Exactly what I wanted to learn! I can already tell this is going to be a great tutorial video.

  • @YOUTUBE_IS_WOKE
    @YOUTUBE_IS_WOKE 2 ปีที่แล้ว

    This is an awesome video, not just about nuget but learning about Devops CI/CD! Glad I found this!

  • @nelsonrivers8546
    @nelsonrivers8546 2 ปีที่แล้ว +1

    Thank you Tim. I have found your videos very helpful. I think you do a pretty good job at explaining topics.

  • @karwenzman
    @karwenzman วันที่ผ่านมา

    Thanks a ton, Tim!
    Making this work in my environment does give me a boost.
    If someone has issues with running the task 'NuGet pack' in the build process in Azure DevOps, there might me one change over time (50:20). Try to replace 'NuGet pack' by the task 'dotnet pack', as the error message in the log file mentions.

    • @IAmTimCorey
      @IAmTimCorey  วันที่ผ่านมา

      Thanks for sharing.

  • @ramoneliasrodriguezalba7427
    @ramoneliasrodriguezalba7427 2 ปีที่แล้ว +1

    Just awesome!!! congrats for the good content Tim...!!!

  • @farsidesc4044
    @farsidesc4044 5 ปีที่แล้ว +4

    Hey Tim! Thanks again for your videos. As a learner, I find them invaluable! I was wondering if you wouldn't mind explaining simple network connections (between two C# apps), hopefully with the context of a client to server "one-to-many" scenario. The reason I ask is, there are a lot of different ways to do connections (TCP, UDP, NamedPipeServerStreams, etc), and I just can't find a coherent answer as to how to keep multiple connections open, monitor them, and run async processes while connected. That's not so simple of a request, is it? Hmm, well, maybe at least one of those topics in networking then? Best of luck!

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +2

      I don't have videos on these yet (they are coming) but I would recommend looking into SignalR (for real-time communication) or message queuing like RabbitMQ or MassTransit (for async message handling).

  • @Ali-xx9sj
    @Ali-xx9sj 2 ปีที่แล้ว

    thank you so much! I've been drilling the internet for a solution and only you who has saved the day form me! Again, thank you very much

  • @thomkb
    @thomkb ปีที่แล้ว

    Another great video. In case no one has posted the answer, multiplying 2 numbers gives you a "product."

  • @AbubakrMahdiSan
    @AbubakrMahdiSan 5 ปีที่แล้ว +1

    I love what you do ,keep it up , hope all the best for you Tim .
    Thank you

  • @jiraiya3306
    @jiraiya3306 11 หลายเดือนก่อน

    Thank you so much ! That material helped me a lot !

    • @IAmTimCorey
      @IAmTimCorey  11 หลายเดือนก่อน

      You are welcome!

  • @bhuwanmaharjan397
    @bhuwanmaharjan397 5 ปีที่แล้ว +3

    Thank you for this awesome tuts Tim

  • @silentwater79
    @silentwater79 5 ปีที่แล้ว +1

    Thanks for your great tutorials. Better than any book you can buy.
    Would be interested to know how you handle Config Settings especially different Config Settings for Debug, Release,... and how you handle internationalization in WPF Projects especially if you want to switch languages live without restarting the application.

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว

      Changing config settings at build can be done with config transforms (either using a tool like Slow Cheetah locally or as part of the build process in something like Azure DevOps). I'm planning on doing a video on internationalization at some point in the semi-near future.

  • @bwzffgh7
    @bwzffgh7 2 ปีที่แล้ว +2

    So many questions I have. Half of my DevOps screens don't look like yours, so I'm struggling to follow your steps. Where is this Build screen that shows the "Artifacts" button at the top that you can use to explore the artifacts (55:30)?? I have been working with DevOps builds for 3 years and have never seen this screen. When I click through a successful build agent job, I only see logs from each step. There are no buttons at the top right (Release, Artifacts dropdown, etc). I would love to see the artifacts that were published after a successful build but have never seen any screen that shows them.

  • @vkpunique
    @vkpunique 4 ปีที่แล้ว

    Great Video, Lots of Good info especially for non-Traditional programmers

  • @telengardforever7783
    @telengardforever7783 4 ปีที่แล้ว

    Everytime you say "I am Tim Corey," I can't help but think of Rachel Corrie.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      Interesting association.

    • @telengardforever7783
      @telengardforever7783 4 ปีที่แล้ว

      @@IAmTimCorey Her movie, "My Name Is Rachel Corrie" sounds similar to you saying "I am Tim Corey."

  • @Kimley-HornandAssociatesIncGMa
    @Kimley-HornandAssociatesIncGMa 3 ปีที่แล้ว

    Good job Tim, awesome video

  • @maxbitran
    @maxbitran 3 ปีที่แล้ว

    Hey Tim, very nice job! Now... what is that thing that made the PowerShell transparent effect when you grabbed it and moved it around? :)

  • @johnnySchillaci
    @johnnySchillaci 3 ปีที่แล้ว

    I was about to do something like this, really awesome guide. Than Tim

  • @zirexpl6395
    @zirexpl6395 2 ปีที่แล้ว +1

    Hi tim, geat material! but I have got one question. What's the best option to debug my nugetpackage? I mean, I created a nuget, publish nugget, my application A is using that nuget, I added something new to my nuget, published that, updated on Application A, but if i want to test and debug that on Application A, what's the best way? (my nuget package is not testable by self, needs to be tested by application A)

    • @IAmTimCorey
      @IAmTimCorey  2 ปีที่แล้ว +2

      The best option is to debug before it becomes a NuGet package. You can use the PDB file to debug the NuGet package in place, but it is more complicated.

  • @nwedge4
    @nwedge4 2 ปีที่แล้ว

    I was really hoping this would include multiple project templates since that topic in not easily found.

  • @mads3564
    @mads3564 ปีที่แล้ว +1

    This video helps me to create a nuget package succesfully! Unfortunately I can't figure out how to include the third party packages (e.g. Dapper) correctly.

    • @mads3564
      @mads3564 ปีที่แล้ว +1

      I managed to find the issue. The Nuget pack task doesn't work for .net core libraries that has references to other packages, for that you need the .Net core pack task.

  • @bhaktipande4576
    @bhaktipande4576 3 ปีที่แล้ว

    Thank you sir for such easy and awesome video

  • @vinodjg
    @vinodjg 4 ปีที่แล้ว

    Very good video. Well timed and precise.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      Glad it was helpful!

  • @MrTombombodil
    @MrTombombodil 2 ปีที่แล้ว

    Would you ever considering doing a video on creating .NET Template Packages for distributing project templates via nuget??

    • @IAmTimCorey
      @IAmTimCorey  2 ปีที่แล้ว

      Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/

  • @petros.ioannou
    @petros.ioannou ปีที่แล้ว

    Very nice video! It would be nice to have a video on how to use nuget in Docker

    • @IAmTimCorey
      @IAmTimCorey  ปีที่แล้ว +1

      What do you mean? Typically, you deploy complete applications to Docker, which means they already have their NuGet packages integrated. Is there something different that you are looking for?

    • @petros.ioannou
      @petros.ioannou ปีที่แล้ว

      @@IAmTimCorey My mistake. yes you are right. Thanks

  • @skanyer
    @skanyer 5 ปีที่แล้ว +1

    Great video. I don't think it covered adding to the public Nuget, will that be a future video?

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว

      That will come at some point.

  • @satori8626
    @satori8626 2 ปีที่แล้ว +1

    Hi Tim, thank you for another great video. I have created a generic class library and uploadet it as a NuGet package to Azure DevOps. When I download and use it in a separate project, it generally works great. However I can't debug into the class library code, as the debugger skips over it.

    • @IAmTimCorey
      @IAmTimCorey  2 ปีที่แล้ว +2

      That's a setting in visual Studio. You do need to include the pdb file in the NuGet package, too.

    • @satori8626
      @satori8626 2 ปีที่แล้ว +1

      @@IAmTimCorey Oh I see, could you please let me know which setting it is?

    • @austinvalentine5781
      @austinvalentine5781 ปีที่แล้ว

      @@IAmTimCorey If you are talking about source link, it doesn't just work, especially if you are using nuget packages published via local on-premises Azure DevOps pipelines, which I can't tell support symbols servers. The whole situation is a confusing mess.

  • @VinuP2023
    @VinuP2023 5 ปีที่แล้ว +1

    Thank you Tim for the video. Can you please add into suggestion list: a video on Powershell for C# developers

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      It is on the list. Thanks for the suggestion.

  • @mainenterprise872
    @mainenterprise872 ปีที่แล้ว

    Do you have a link/video for non .Net Core libraries as in the normal Class Library as I don't see the Package option under properties

  • @carlosf2690
    @carlosf2690 2 ปีที่แล้ว

    Hi Tim, Thanks for your videos. Quick question, can I include in a project a NuGet from an artifact in a different collection? The NuGet restore only allow me to pick Artifacts/TFS Feed from the same collection.

  • @MrXhabi
    @MrXhabi 3 ปีที่แล้ว +1

    Hi Tim
    Great video. Can you please make a video for generic class for httpclient or httpclient factory with CRUD operations that can be used for all api calls

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +2

      I will add it to the list. Thanks for the suggestion.

  • @goldenwoof
    @goldenwoof 5 ปีที่แล้ว +1

    Excellent stuff, as always! One question, though: What if the NuGet package I'm creating uses another NuGet package in its code? When someone installs my package from our NuGet server, will it automatically get the package which my package is using? Or are there other steps necessary?

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      Yep, if your package uses packages, those other packages are dependencies that will be brought in when installing your NuGet package.

  • @andrewshwets1316
    @andrewshwets1316 4 ปีที่แล้ว +1

    Keep it up Man!!

  • @Прыжкивводу-ц7в
    @Прыжкивводу-ц7в 3 ปีที่แล้ว

    That tutorial was pretty poggers

  • @pinoyrunningpenguin
    @pinoyrunningpenguin ปีที่แล้ว

    How do you do this with 3rd party compiled DLL? I got a DLL which was not in any nuget repository and want it to be in the azure devops nuget feed.

  • @Ankushbindlish
    @Ankushbindlish 4 ปีที่แล้ว

    Great video
    Release pipeline can have CI enabled. Csproj pkg version would trigger actual push, rest ignored.
    Add example where proj relies on 2 external PackageSources.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      I'll add that suggestion to the list

  • @robertdoyle7696
    @robertdoyle7696 4 ปีที่แล้ว

    Nice course. Thank you.

  • @ElCidPhysics90
    @ElCidPhysics90 ปีที่แล้ว

    Quick question and this kind of refers back to the Class Library video. Would there be any advantage to building the dlls projects in the same solution and then creating a dll or nuget solution from the individual projects? This is in contrast to creating a new solution for each project/dll you need?

    • @IAmTimCorey
      @IAmTimCorey  ปีที่แล้ว +1

      It is usually easier to develop the UI project with the class library, but it really does depend on the situation.

    • @ElCidPhysics90
      @ElCidPhysics90 ปีที่แล้ว

      @@IAmTimCorey thanks, Tim

  • @sonasona6
    @sonasona6 2 ปีที่แล้ว

    Hi Tim , Is it possible to create a nuget package with hooks file , interfaces , class files and use it for many projects please ? when i tried to create a pack it didnt create a nuget package in this video 26.01 location ..that step didnt work for me .. could you please help on this ?

  • @RalfsBalodis
    @RalfsBalodis 4 ปีที่แล้ว

    It didn't look like you changed package ID in the properties.
    Confused about the nuget package name change after automating the process.
    I guess it is because package names are reserved. The name was already in use so it defaulted to the Project name instead? What if it was two identical project names? Would it then append "1" to your NuGet package name?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      I believe it is because of how the NuGet package system works in Azure DevOps. I'll work on getting that improved.

  • @ContentsOfTable
    @ContentsOfTable 4 ปีที่แล้ว +1

    I suggest adding NuGet.exe to where its most convenient to the developer then adding it to the system environment variables so that there is no fuss with paths in scripts or tooling.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      Thanks for the suggestion.

  • @pinoyrunningpenguin
    @pinoyrunningpenguin ปีที่แล้ว

    How do you change the target to 4.7.2? I have to use the DLL to 4.7.2. I just referenced a 3rd party DLL.

  • @raghur5678
    @raghur5678 2 ปีที่แล้ว

    thanks for the video.. my question is i have two organisations , i want to push the Nuget packages to the Both organisation. how can i push it. is that possible? if yes then How can i?

  • @joshibhushan1
    @joshibhushan1 ปีที่แล้ว

    Great video. For dotnet core 7 , when I am trying to do pack then .nupkg file is not getting generated. Any ideas ??

  • @tombitsky573
    @tombitsky573 4 ปีที่แล้ว

    Thank you very much for a great tutorial. One issue not covered in the video that I can't seem to find any information on: when you published using Azure Pipelines, the package name, description and author information changed. I'm having the same problem: the proper information when I publish from the command line, blank information and a different package name when I use Azure Pipelines. Where does one edit the package details when using Azure Pipeline?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      I can add more info about this in a follow-up video. I believe in my case, I made a change that changed the name from IAmTimCorey.HelperLibrary to HelperLibrary but the description stayed the same. It should be whatever you specify.

  • @nirmala4059
    @nirmala4059 3 ปีที่แล้ว

    Tim, I'm creating a nuget package for nlog to keep in my private feed. I created custom layout renderer but when I install the created nuget package, the custom renderer are not working. I followed all the things mentioned in nlog documentation. What's the correct way to do it so that when I install nuget package, the custom renderers would work?

  • @gauravjoshi5054
    @gauravjoshi5054 3 ปีที่แล้ว

    Hi Tim thanks for informative video session. I have one question I have a .zip file I want to create nuget package for it. how I can do it..? I tried adding this zip into class library and create package but my nupkg file doesn't contain my zip file content. Any suggestion please..?

  • @neerajchouksey3761
    @neerajchouksey3761 4 ปีที่แล้ว

    Thanks Tim . I am using dotnet publish command to build and publish my solution . nuget package from different solution is required to build current solution . What can i do dotnet so that publish command consume the latest nuget package. FYI, I am not using Azure Devops

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      It sounds like this is what you are looking for: stackoverflow.com/questions/42694079/always-use-latest-version-of-nuget-package

  • @Mark4nov
    @Mark4nov 4 ปีที่แล้ว

    Hmm, I'm thinking, what can I do with those "versions" where I'm just testing if something works? How can i test my changes without publish a new version to everyone? Thanks a lot for this new perspective, i was thinking in put my release dlls into OneDrive xD.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      Create pre-release versions that don't get published to the main feed. You can create an alpha and beta feed (or just one pre-release feed) that early adopters and testers can use.

    • @Mark4nov
      @Mark4nov 4 ปีที่แล้ว

      @@IAmTimCorey ooohhh, thankyouuuu, i'll start with my experiments muahaha

  • @alinazar7998
    @alinazar7998 5 ปีที่แล้ว

    great tutorial! thanks for this!

  • @ishanpand3y
    @ishanpand3y 5 หลายเดือนก่อน

    Hi Corey, this lecture seems bit outdated could you please make new video with latest VS2022 and latest Azure DevOps.

    • @IAmTimCorey
      @IAmTimCorey  5 หลายเดือนก่อน

      Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/

  • @acp3012
    @acp3012 2 ปีที่แล้ว

    Hi Tim, it is really awesome video. You have explained how to create Nuget packages and use in a project.
    Do you have any vedio that explains how to build a nuget package with multiple DLLs?. What i mean is that, I have around 20 Dlls (Class libraries) each has its own task. I want to provide it as a single nuget package.
    Thank you

  • @SilverWire10
    @SilverWire10 3 ปีที่แล้ว

    how to make a package support cmdlet to use from nuget package manager console like in entityframework "add-migration" , update-database , etc... ?

  • @sugiyartosugiyarto1587
    @sugiyartosugiyarto1587 หลายเดือนก่อน

    Hello sir.
    I have question
    Iam download scottpackage but not working.
    Show mesage "couldnot instal package net framework 452 but the source donthave packages xxx "same like that
    How to solution?
    Iam vs 2015 and 2017
    Thanks

    • @IAmTimCorey
      @IAmTimCorey  หลายเดือนก่อน

      It sounds like you are trying to use a package that doesn’t support your version of .NET.

    • @sugiyartosugiyarto1587
      @sugiyartosugiyarto1587 หลายเดือนก่อน

      @@IAmTimCorey ok. Thanks

  • @andywalter7426
    @andywalter7426 3 ปีที่แล้ว

    I have one question. Is it possible to have a github action where everytime you commit something, it can publish to nuget. I would be disappointed if the only way a person can do this would be to disclose the key in the actions which means if you have the open source project as public, then they have your keys which is bad. I would love to see a video about a github action so everytime a person commits, github can build and post on nuget.

  • @harikachowdarybonthu5772
    @harikachowdarybonthu5772 5 ปีที่แล้ว +1

    Can we create these kind of feeds without azure or myget ??
    If we want to use NuGet Server itself how can we create feeds ??

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว

      You mean NuGet.org? Just sign up and upload your packages. You can also host your own NuGet feed on a private server (or even your own machine).

  • @noblenetdk
    @noblenetdk 5 ปีที่แล้ว

    I just found your other video on the setup/use of Azure. Thanx

  • @xavier71326
    @xavier71326 4 ปีที่แล้ว

    thank u a lot. U are the best.

  • @rlyonsiii
    @rlyonsiii 5 ปีที่แล้ว +1

    Hi Tim, will the content Include work for a Readme.md (markdown) file in place of a text file?

  • @AndreaTani
    @AndreaTani 4 ปีที่แล้ว

    Thank you for this guide!
    I tried building a package of a project that has other NuGet packages as dependencies, but they're neither included on the package nor listed as dependencies in the NuGet Package manager, could you help or point in the right direction? I don't seem to find any indication of this issue online. Thanks

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      Are you sure they didn't come through? Typically, they are brought in but not shown in your installed packages list.

    • @AndreaTani
      @AndreaTani 4 ปีที่แล้ว +1

      @@IAmTimCorey Yes, unfortunately I'm sure. I opened the package file and they weren't there, furthermore, when I see the log of the NuGet Pack step, there is no mention of dependency inclusion

  • @StudentCompanion
    @StudentCompanion 5 ปีที่แล้ว +1

    Thanks

  • @MrFoghorn111
    @MrFoghorn111 4 ปีที่แล้ว

    Hey Tim, I'm finding a dearth of documentation regarding using nuget to distribute js files and libraries in web projects. Especially Asp.Net Core projects. Client side code code just isn't well documented. What I'm trying to accomplish is akin to the way jquery is installed using Nuget. Any resources you can point me to that have clear documentation on this topic?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      Typically, we don't use NuGet for client-side JavaScript files (we used to). The problem is having one more place to update when new versions come out. Instead, we use standard tools like npm.

    • @MrFoghorn111
      @MrFoghorn111 4 ปีที่แล้ว

      IAmTimCorey yep. Took a lot of reading before I figured that out. How often the simple solutions elude me... I do find having two separate package managers annoying, but I cracked open the NPM documentation on Tuesday. At least npm can also live in my azure DevOps pipeline.

  • @AhmedHassan-gk3tx
    @AhmedHassan-gk3tx 2 ปีที่แล้ว

    Is there is a way to automatically update the version number with each build ?

    • @IAmTimCorey
      @IAmTimCorey  2 ปีที่แล้ว +2

      To an extent. Just remember that the version number isn't just an incrementing number. We choose when to update the minor and major version numbers based upon what type of changes have been added, which takes human intervention.

  • @jax2059
    @jax2059 5 ปีที่แล้ว +1

    @Tim do you need to buy Azure Dev Ops?

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว

      Nope, it is free for most situations (teams up to 5 people and businesses who gross less than $1 million per year).

  • @sureshpanchanathan
    @sureshpanchanathan 2 ปีที่แล้ว

    Hi Tim,
    Very useful video. I was able to follow and create a nuget package, but like the readme.txt file. I have a folder within the project called “configuration” and under it, I have a settings.json file where I store the file paths, db connection etc. and another folder called SQLQueries, under it I have a mysearchsql.txt, pls explain how to package those folders and files as part of the nuget package?
    I also want the same folder structure myproject/configuration/settings.json and myproject/SQLQueries/mysearchsql.txt to be utilized when I install the package and call the respective methods for db connection as well as method for running the sql query. Please help.

  • @swan4959
    @swan4959 3 ปีที่แล้ว

    Hi Tim, can you tell me what extra steps (in vs studio2019 and SSMS) i will need to do if i want to implement ms sql server in the C# code for creating a nuget package? It would be rlly awesome if u reply thxs.

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +1

      You can't really put a SQL database into a NuGet package, if that is what you are asking for.

    • @swan4959
      @swan4959 3 ปีที่แล้ว

      Thxs for the reply Tim. You are the best : )

  • @noggog5106
    @noggog5106 4 ปีที่แล้ว

    Amazing video! Thanks so much.
    One aspect that I'd like to understand more is the best practice for rapid library/user parallel development. For example, if I use the systems you just proposed and add my library as a nuget dependency in my child project, well now it's a 5 minute or more affair to change some code in the library and push it through Azure to "get it" to my child project. Not to mention I need internet access at the time, etc. It makes working on both a library and its user project in parallel somewhat unfeasible.
    Is there a way to set up a development tip where making a change on the library project can more quickly propagate to my child project? That way I can quickly flip flop between library and user projects and rapidly develop both, and then push through these more official Azure channels once things "settle in"?
    Cheers!

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +2

      There are ways to do this, yes, including doing a local NuGet feed (not online) for dev or even developing the library directly with the project and then separating it out into a NuGet package once it hits maturity. The key is that NuGet packages aren't typically used for just one project. That is too much separation without a benefit. They are useful when multiple projects need the same library.
      I'll be doing more content on how to create and work with NuGet packages in the future.

  • @dwillingham
    @dwillingham 4 ปีที่แล้ว

    I seem to run into an error getting my release pipeline working. I get an error that "User XXX lacks permission to complete this action." from the agent that is trying to push the artifact to the feed.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      It sounds like you need to update your feed's permissions. This might help: stackoverflow.com/questions/58780741/user-lacks-permission-to-complete-this-action-you-need-to-have-addpackage

    • @dwillingham
      @dwillingham 4 ปีที่แล้ว

      @@IAmTimCorey Thanks! I was able to get it to work and the issue what that the default feed permissions didn't allow the build agent to push the artifact to it. i.stack.imgur.com/OX9nR.png is the setting I had to change to get it working.

  • @rodrigoskw1
    @rodrigoskw1 4 ปีที่แล้ว

    Perfect !

  • @SubhojeetNeogy
    @SubhojeetNeogy 5 ปีที่แล้ว

    Thanks Tim

  • @mihaimyh
    @mihaimyh 5 ปีที่แล้ว

    Hi Tim,
    Thanks for the video.
    How can we mark a version as a preview so it can appear on Visual Studio by clicking the checkbox with includes pre-releases or previews?

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      Use semantic versioning to indicate pre-release values like 1.0.1-alpha: docs.microsoft.com/en-us/nuget/create-packages/prerelease-packages

  • @belmiris1371
    @belmiris1371 9 หลายเดือนก่อน

    Thanks!

    • @IAmTimCorey
      @IAmTimCorey  9 หลายเดือนก่อน

      Thank you!

  • @rexkenley
    @rexkenley 5 ปีที่แล้ว +3

    The result of multiply is called product.

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว

      Thanks! I was drawing a blank.

  • @mb-ql1gb
    @mb-ql1gb 3 ปีที่แล้ว +1

    I ordered some chicken nuget at McDonald´s last week ... they sent me home ... not available ... I dont understand ^^

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +2

      The good news is that you can get a 20-pack for free inside VS.

    • @mb-ql1gb
      @mb-ql1gb 3 ปีที่แล้ว +1

      @@IAmTimCorey IAmNotTimCorey, I dont get anything for free ... I get it for fee ^^ ;D

    • @torrvic1156
      @torrvic1156 ปีที่แล้ว

      @@mb-ql1gbhilarious 😂

  • @bhaktipande4576
    @bhaktipande4576 3 ปีที่แล้ว

    Hello sir i have created one demo application and trying to access it in our console application then dll is generated but enable to it through Using statement there. could you please help me ?

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +1

      I'm sorry, I'm not sure what you are asking. However, I also don't have the ability to debug your application (nor the time). Use this as an opportunity to improve your debugging skills. You can do this.

  • @ZoidbergForPresident
    @ZoidbergForPresident 5 ปีที่แล้ว

    Quick question: are your private packages really private if they're hosted in a cloud? :P

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +3

      Yep. The cloud doesn't mean public. The security level on your private repositories is really impressive. In fact, I recommend small to medium shops host in the cloud rather than maintaining their own servers because they don't have the ability to secure them as well as Microsoft does.

  • @laxmannagtilak8362
    @laxmannagtilak8362 3 ปีที่แล้ว

    Can you do the same video with the GitLab package registry?

    • @tomthelestaff-iamtimcorey7597
      @tomthelestaff-iamtimcorey7597 3 ปีที่แล้ว +1

      I noted your recommendation by adding it to Tim's list of possible future topics, thanks.

  • @Teachingbird
    @Teachingbird 3 ปีที่แล้ว

    If anyone else is having problems - I had issues with not being able to do the Nuget push. I had to set the permissions for the feed to "Allow project-scoped builds"

  • @Rajeshsingh-ws5th
    @Rajeshsingh-ws5th 4 ปีที่แล้ว

    Hi Tim great tutorial, I succeed to create nuget pkg and done with CI. after uploading 2 versions unable to get access organization setting option. It seem my account became user only.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      Maybe you logged in with different credentials? Or maybe they were revoked.

    • @Rajeshsingh-ws5th
      @Rajeshsingh-ws5th 4 ปีที่แล้ว

      @@IAmTimCorey Thanks , I solved my problem by disconnecting it from Azure AD. Tim you are good, I like your videos. Keep train us.

  • @usamaaziz4349
    @usamaaziz4349 4 ปีที่แล้ว

    How can I add reference to namespace System.Data.SqlClient?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      Just add a using statement. It should be already installed for you.

    • @usamaaziz4349
      @usamaaziz4349 4 ปีที่แล้ว

      @@IAmTimCorey Well. That didn't worked and I don't know why. I had to add this line in MyProject.csproj inside tag
      Can you tell me why did that heppened?

  • @skanyer
    @skanyer 5 ปีที่แล้ว

    26:20 Do you want it in debug when you pack? Does it matter?

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว

      It seems to be a bit of a preference thing based upon how you want your symbols to be built and how easy you want it to be to debug. In general, though, when you go to push your production version, default to release build unless you have a really good reason not to.

  • @ALFREDVPAUL
    @ALFREDVPAUL 4 ปีที่แล้ว +1

    excellent Video can you help me how to Include a json file in package .

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +2

      I can add that to the suggestion list for the next video on NuGet.

    • @ALFREDVPAUL
      @ALFREDVPAUL 4 ปีที่แล้ว

      @@IAmTimCorey thanks will be waiting for it.

  • @danielkrajnik3817
    @danielkrajnik3817 8 หลายเดือนก่อน

    12:15 why would you want to do that Tim?

    • @IAmTimCorey
      @IAmTimCorey  8 หลายเดือนก่อน

      Have personal NuGet packages? Because sometimes you have company-specific or proprietary code that you use in your projects that you want to share between projects.

  • @dangerfox1776
    @dangerfox1776 ปีที่แล้ว

    Classic editor is no longer there :(

    • @IAmTimCorey
      @IAmTimCorey  ปีที่แล้ว

      Yes, it is. I just verified it.

    • @ancientCelticus
      @ancientCelticus 2 หลายเดือนก่อน

      It is. To enable it navigate to Organization Settings >> Pipelines >> Settings After switching off the settings, we can see the classic editor option.

  • @frozenprakash
    @frozenprakash 2 ปีที่แล้ว

    I hope Microsoft cuts down these steps so that in a single click with a wizard it's possible to push directly to azure devops as private nuget package.

    • @IAmTimCorey
      @IAmTimCorey  2 ปีที่แล้ว

      They are making the number of steps easier. Not sure if we will get to a single step or not, but it definitely is easier than it used to be.

  • @MarekSowikowski
    @MarekSowikowski 5 ปีที่แล้ว

    After near 30 minutes of video there was no info about creating package. I am looking for concise information, not poem.

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +2

      I explain this at the beginning of my newer videos but I provide real-world context, not just bite-sized tutorials. The former allows you to get the context you need to understand when and how to use something in the real world. The latter gives you a nice demo that rarely works when you try to modify it in any way.

    • @MarekSowikowski
      @MarekSowikowski 5 ปีที่แล้ว

      @@IAmTimCorey YT is not a good place to present regular lectures, that can be treated as main source of knowledge. There is no organize such teaching tools. Playlists are too primitive. I am looking for short materials with concrete subjects because I have context in my mind. It is a waste of time such long materials for me.

    • @IAmTimCorey
      @IAmTimCorey  5 ปีที่แล้ว +1

      Then this definitely isn’t the channel for you.

    • @MarekSowikowski
      @MarekSowikowski 5 ปีที่แล้ว

      @@IAmTimCorey Beeing a child I have been listening to my granny's stories. Long and not so true. Now I am looking for compact and honest information.

    • @torrvic1156
      @torrvic1156 ปีที่แล้ว

      @@MarekSowikowski who said that YT is not a place for lectures? There is no line in the rules of YT saying that this is not a place for lectures.
      Many people are enjoying Tim’s content (including me) and you sound like a very arrogant man without any point.

  • @medusaskull9625
    @medusaskull9625 ปีที่แล้ว

    How do you debug with step into debug package?

    • @IAmTimCorey
      @IAmTimCorey  ปีที่แล้ว +1

      Include the PDB file with your package.

    • @medusaskull9625
      @medusaskull9625 ปีที่แล้ว

      @@IAmTimCorey Wow, you are actually answering my question. Thank you.
      Do you have a video where you show how? I do have the pdb file in my nuget package for both debug and release. However, when I break and tried to use F11, the debugger just step right through and not into the package code.

    • @IAmTimCorey
      @IAmTimCorey  ปีที่แล้ว +2

      I don't have a video on that, but it is on the suggestion list I believe.

  • @zaidalikhan2749
    @zaidalikhan2749 ปีที่แล้ว

    How to work with Nuget pkg in VS Code?

    • @IAmTimCorey
      @IAmTimCorey  ปีที่แล้ว +1

      Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/