Try uninstalling the Microsoft.CodeDom.Providers.DotNetCompilerPlatform NuGet package from the Kentico admin app, build the solution and then install it again, the same version as it was - 2.0.1 and then build the project again. This should help. It seems to me that this NuGet package was not installed properly.