MSBuilder.CodeTaskAssembly (nuget): Provides the $(CodeTaskAssembly) property which properly locates the right assembly to use for inline tasks depending on the currently executing MSBuild engine.
Keywords: msbuild|inline|codetask