The package Microsoft.CodeDom.Providers.DotNetCompilerPlatform now has versions 3.11.0 and 4.1.0 released.
The SDK should use the new version where possible.
If the TargetFramework is net472 or higher we can use 4.1.0. For net462 or higher we can use 3.11.0.
If we are trying to target older than net462 (up to net45) we need to keep on the current 3.6.0 version.