Skip to content

Commit

Permalink
Use Content for non-TFM specific items (#67206)
Browse files Browse the repository at this point in the history
For static items included in the Microsoft.Net.Compilers.Toolset package, use non-TFM specific logic.
  • Loading branch information
mmitche authored Mar 7, 2023
1 parent eed3a78 commit f0cfc30
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
SetTargetFramework="TargetFramework=net6.0" />
</ItemGroup>

<ItemGroup>
<Content Include="build\**\*.*" PackagePath="build\" />
<Content Include="buildMultiTargeting\**\*.*" PackagePath="buildMultiTargeting\" />
</ItemGroup>

<Target Name="_GetFilesToPackage" DependsOnTargets="$(_DependsOn)">
<ItemGroup>
<_File Include="@(DesktopCompilerArtifact)" TargetDir="tasks/net472"/>
Expand All @@ -51,9 +56,6 @@
<_File Include="@(CoreClrCompilerBinArtifact)" TargetDir="tasks/net6.0/bincore"/>
<_File Include="@(CoreClrCompilerBinRuntimesArtifact)" TargetDir="tasks/net6.0/bincore/runtimes"/>

<_File Include="$(MSBuildProjectDirectory)\build\**\*.*" Condition="'$(TargetFramework)' == 'net472'" TargetDir="build" />
<_File Include="$(MSBuildProjectDirectory)\buildMultiTargeting\**\*.*" Condition="'$(TargetFramework)' == 'net472'" TargetDir="buildMultiTargeting" />

<TfmSpecificPackageFile Include="@(_File)" PackagePath="%(_File.TargetDir)/%(_File.RecursiveDir)%(_File.FileName)%(_File.Extension)" />
</ItemGroup>
</Target>
Expand Down

0 comments on commit f0cfc30

Please sign in to comment.