A Reading List

Creating PWA Using Angular 7 – Step-by-Step Guide

A rather long and detailed post about Angular and PWA (Progressive Web App), but worth the read, especially if you haven’t heard about PWA. It covers the 101 stuff and goes on to creating PWA using Angular.


How to use Azure Bastion to connect securely to your Azure VMs

Great new offering from Azure. If you always RDP to your VM in Azure, or use a _’jump box’_, you will have a new, better, more secure way to RDP now. I really like the name too!


Lessons from Design School for Software Engineers

They are great lessons software engineers can adopt to become better. Not a technical post, but related to technical. It’s more of philosophical-type post, which is always good to know.


The Battle of C# to JSON Serializers in .NET Core 3

There’s a new kid in town, it’s called `System.Text.Json`. Michael goes over how the comparison between this new .NET Core 3 feature and other JSON libraries, including the infamous Json.NET. And yes, it cover performance test as well.


How to resolve .NET reference and NuGet package version conflicts

Have you ever got one of those annoying, `Could not load file or assembly or one of its dependencies` error when running .NET locally? Not only Michael explains why, but he also tell you how to resolve it. Mystery solved.


Download NuGet Package File

When including NuGet packages in Visual Studio template, you will also include actual .nupkg files in your Visual Studio template.

To get NuGet files:

http://nuget.org/api/v2/package/<package_id>/<version>

To get the latest version:

http://nuget.org/api/v2/package/<package_id>/

Example:

Version 1.7: http://nuget.org/api/v2/package/jquery/1.7
Latest: http://nuget.org/api/v2/package/jquery/

NuGet Packages in Visual Studio Project Template as New Project

When include NuGet packages in Visual Studio project template, a modification will need to be done if the template will be used as new project.

Modify .vstemplate file:

<VSTemplate>
        <packages repository="template">
            ...
        </packages>
    </WizardData>
</VSTemplate>

Notice repository attribute in <packages> node.

All the .nupkg files must be placed in the root directory of project template zip file.

Include NuGet Packages in Visual Studio Project Template

In a single Visual Studio project template, you can include NuGet packages so that when project is added, the NuGet packages are pre-installed.

A small modification is necessary if you are going to use this to create new project.

Edit .vstemplate file to include:

<VSTemplate>
    <WizardExtension>
        <Assembly>NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
        <FullClassName>NuGet.VisualStudio.TemplateWizard</FullClassName>
    </WizardExtension>
    <WizardData>
        <packages>
            <package id="jQuery" version="1.6.2" />
        </packages>
    </WizardData>
</VSTemplate>

Where <packages> will include all packages pre-installed to the Visual Studio template.

Source: NuGet Docs