Skip to content

Commit

Permalink
Ensure AssemblyAttributes.cs file is generated with correct TargetFra…
Browse files Browse the repository at this point in the history
…meworkAttribute (#1020)
  • Loading branch information
Scottj1s authored Oct 12, 2021
1 parent ee17bea commit 51a2183
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nuget/Microsoft.Windows.CsWinRT.targets
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ $(CsWinRTIncludeWinRTInterop)
<UpToDateCheckBuilt Include="$(CsWinRTGeneratedFilesDir)WinRT.cs" Original="@(CsWinRTInputs)" />
</ItemGroup>
</Target>

<Target Name="CsWinRTIncludeProjection" BeforeTargets="BeforeCompile" DependsOnTargets="CsWinRTGenerateProjection" Condition="$(CsWinRTEnabled)">

<!-- Note: GenerateTargetFrameworkMonikerAttribute is conditional upon @(Compile) not being empty -->
<Target Name="CsWinRTIncludeProjection" BeforeTargets="BeforeCompile;GenerateTargetFrameworkMonikerAttribute" DependsOnTargets="CsWinRTGenerateProjection" Condition="$(CsWinRTEnabled)">
<ItemGroup>
<Compile Include="$(CsWinRTGeneratedFilesDir)*.cs" Exclude="@(Compile)" />
</ItemGroup>
Expand Down

0 comments on commit 51a2183

Please sign in to comment.