About a week ago, I received an email from a visitor about my QR code post which I blogged about back in 2010. I have been told that the most important reference was down. It was the reference to the DLL for generating the QR codes. So I uploaded the DLL as mirror
Apparently the twitt88.com website is back online at http://platform.twit88.com/projects/mt-qrcode/files It also seems that there has been some new releases for the DLL.
Since 2011 you only use NuGet to keep your packages up to date, I thought that adding it through NuGet would be the best option.
Searching for ‘QR’ did not return any good packages. Searching for ‘QRcode’ did. It returned one package for MVC https://nuget.org/packages?q=qrcode
But I still have WebForms in this solution… Investigating the source of that package, pointed me to this open source QR project from codeproject. But that is an article from twitt88 from 2007! So the only QR code package in NuGet references (really) old material from the exact same user!
That’s when I decided to help out the community by adding this awesome DLL from twitt88 to the NuGet Package List!
Add a new package to NuGet
I am a great fan of NuGet, but until today only as user, not as contributor. So let’s start. I have already NuGet extension installed and have the DLL I would like to add on my hard drive in a new folder.
This is the latest (at the moment) 126.96.36.199
1. Get the NuGet.exe Command Line bootstrapper
Download the utility from CodePlex:
2. Add NuGet.exe as path variable (optional)
Right click ‘my computer’, hit properties and go to the advance settings. If you don’t remember how, you can visit this website for a small Path variable tutorial http://www.computerhope.com/issues/ch000549.htm
3. Open up a command prompt
(Windows key + R) cmd <enter>
- Navigate to your package folder
- Move the DLL to a new subfolder called lib
- Make sure that you are in the root package folder
- Run `NuGet Update –self`or if you have skipped step 2 (path var) Then run: `path/to/your/nugetDownloadLocation/nuget.exe update –self`
- Run `NuGet SetApiKey yourApiKey` You can find your API key on the NuGet account page
- Run `NuGet spec MessagingToolkit.QRCode.dll`that will create a nuspec file.
- Run `notepad MessagingToolkit.QRCode.dll.nuspec`and change the title, summary, URI’s to licenses etc. Use this nuspec reference and save the file and exit notepad.
- Run `NuGet Pack MessagingToolkit.QRCode.dll.nuspec` this will create a nupkg file
- Run `NuGet Push MessagingToolkit.QRCode.1.3.0.nupkg` And that is it!
You have just published your DLL as a NuGet package!
Good luck expanding the package list of NuGet!
Edit 2nd of May 2012: The QR code package that I submitted to NuGet has over 50 downloads at the moment!