GDPR and disabling Sitecore Tracker lead to Exception in Sitecore.Analytics.Media.MediaRequestEventHandler.OnMediaRequest

As many Europe-based businesses we had to comply with GDPR legislation, which requires us to not track analytical data from visitors without their consent. When it comes to Sitecore 8.x, this requires to implicitly stop the Sitecore Tracker from initializing unless the corresponding Conseny Cookie has been accepted:    

The type initializer for ‘Sitecore.Install.Serialization.IOUtils’ threw an exception.

Today I’ve been having this problem out of the blue: “The type initializer for ‘Sitecore.Install.Serialization.IOUtils’ threw an exception.” Searching for this error in relation to Sitecore usually points to Newtonsoft.Json.dll as the culprit, but in my case it was Mvp.Xml.dll, that some NuGet or somesuch upgraded to a higher version thus

Random error after upgrading some NuGet packages: “You must add a reference to assembly ‘netstandard, Version=2.0.0.0”

Just a very quick write-up on this as it kept me busy for a couple of hours looking for a solution. After upgrading a number of NuGet packages (Microsoft ASPNet WebApi 2.2 Core Libraries, Microsoft ASPNet MVC, HtmlAgilityPack), my perfectly working Sitecore local development setup stopped working, instead throwing the