I was able to get this to work. My solution looks something like this:
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RuntimeFrameworkVersion>2.1.1</RuntimeFrameworkVersion>
<NoWarn>0169;8019</NoWarn>
</PropertyGroup>
<NoWarn> is PascalCase rather than camelCase, and the element is nested inside of a <PropertyGroup>.