Skip to content

Commit

Permalink
Add the implementation dll to make sure design time builds pick up on…
Browse files Browse the repository at this point in the history
… the output. (#1389)

* Add the implementation dll to make sure design time builds pick up on the output.

* Update Microsoft.Windows.CsWinRT.targets

---------

Co-authored-by: Manodasan Wignarajah <mawign@microsoft.com>
  • Loading branch information
jlaanstra and manodasanW authored Dec 7, 2023
1 parent 2eaff7a commit a18d1ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nuget/Microsoft.Windows.CsWinRT.targets
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<ReferencePath Remove="@(ReferencePath)" Condition="'%(ReferencePath.Extension)' == '.winmd'" />
<ReferencePathWithRefAssemblies Remove="@(CsWinRTRemovedReferences)"
Condition="'%(CsWinRTRemovedReferences.Filename)%(CsWinRTRemovedReferences.Extension)' == '%(ReferencePathWithRefAssemblies.Filename)%(ReferencePathWithRefAssemblies.Extension)'" />
<!--Do not publish projection source winmds -->
<!--Do not publish projection source winmds, but do include implementation dlls -->
<ReferenceCopyLocalPaths Remove="@(CsWinRTRemovedReferences)" />
<ReferenceCopyLocalPaths Include="@(CsWinRTRemovedReferences->'%(RootDir)%(Directory)%(DestinationSubDirectory)%(Implementation)')"
Condition="'%(CsWinRTRemovedReferences.Implementation)' != '' AND Exists('%(CsWinRTRemovedReferences.RootDir)%(CsWinRTRemovedReferences.Directory)%(CsWinRTRemovedReferences.DestinationSubDirectory)%(CsWinRTRemovedReferences.Implementation)')" />
<!--Remove winmd references from deps.json to prevent CLR failing unit test execution-->
<ReferenceDependencyPaths Remove="@(ReferenceDependencyPaths)" Condition="%(ReferenceDependencyPaths.Extension) == '.winmd'"/>
</ItemGroup>
Expand Down

0 comments on commit a18d1ee

Please sign in to comment.