Don't enable DllImport generator for shims (#53973)
authorElinor Fung <elfung@microsoft.com>
Thu, 10 Jun 2021 04:41:31 +0000 (21:41 -0700)
committerGitHub <noreply@github.com>
Thu, 10 Jun 2021 04:41:31 +0000 (21:41 -0700)
eng/generators.targets

index 77d07da..8764a59 100644 (file)
@@ -20,6 +20,7 @@
 
   <Target Name="EnableDllImportGeneratorForNetCoreApp"
           Condition="'$(EnableDllImportGenerator)' == ''
+                        and '$(IsFrameworkSupportFacade)' != 'true'
                         and ('$(IsNetCoreAppSrc)' == 'true' or '$(MSBuildProjectName)' == 'System.Private.CoreLib')
                         and '$(MSBuildProjectExtension)' == '.csproj'">
     <PropertyGroup>