Skip to content

Commit

Permalink
Manifest DllImportSourceGenerator as a generator (#62836)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalStrehovsky authored Dec 15, 2021
1 parent 74e6d01 commit 4733c70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
<EnableDefaultItems>true</EnableDefaultItems>
<CLSCompliant>false</CLSCompliant>
<ILLinkTrimAssembly>false</ILLinkTrimAssembly>
<IsGeneratorProject>true</IsGeneratorProject>
</PropertyGroup>
</Project>
7 changes: 1 addition & 6 deletions src/tests/Common/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,7 @@
<AotCompilerCopyLocal Include="$(CoreCLRArtifactsPath)aotsdk/**/*" TargetDir="nativeaot/sdk/" />
<AotCompilerCopyLocal Include="$(CoreCLRArtifactsPath)build/**/*" TargetDir="nativeaot/build/" />
<AotCompilerCopyLocal Include="$(TargetingPackPath)/*" TargetDir="nativeaot/framework/" />

<!-- Works around https://github.com/dotnet/runtime/issues/62372 -->
<_FixedRuntimeCopyLocalItems Include="@(RuntimeCopyLocalItems)" />
<_FixedRuntimeCopyLocalItems Remove="@(_FixedRuntimeCopyLocalItems)" Condition="'%(Filename)' == 'Microsoft.Interop.DllImportGenerator'" />

<AotCompilerCopyLocal Include="@(_FixedRuntimeCopyLocalItems)" TargetDir="nativeaot/framework/" />
<AotCompilerCopyLocal Include="@(RuntimeCopyLocalItems)" TargetDir="nativeaot/framework/" />
</ItemGroup>

<ItemGroup Condition="'$(RuntimeFlavor)' == 'mono' and '$(IsDesktopOS)' == 'true' " >
Expand Down
5 changes: 1 addition & 4 deletions src/tests/build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,7 @@
</RemoveDuplicates>
<ItemGroup>
<TestsAndAssociatedAssemblies Include="%(TestDirs.Identity)/*.dll" />
<CoreRootDlls Include="$(CORE_ROOT)/*.dll"
Exclude="$(CORE_ROOT)/xunit.performance.api.dll;
$(CORE_ROOT)/Microsoft.Interop.DllImportGenerator.dll;
$(CORE_ROOT)/Microsoft.Interop.SourceGeneration.dll" />
<CoreRootDlls Include="$(CORE_ROOT)/*.dll" Exclude="$(CORE_ROOT)/xunit.performance.api.dll" />
<AllDlls Condition="'$(MonoFullAot)' == 'true'" Include="@(TestsAndAssociatedAssemblies);@(CoreRootDlls)" />
<AllDlls Condition="'$(MonoFullAot)' != 'true'" Include="@(TestsAndAssociatedAssemblies)" />
</ItemGroup>
Expand Down

0 comments on commit 4733c70

Please sign in to comment.