Skip to content

Commit

Permalink
Fixing targets when winrt.cs doesn't exist (#883)
Browse files Browse the repository at this point in the history
* Fix targets.

* Fix slash
  • Loading branch information
manodasanW authored Jun 17, 2021
1 parent d607f3e commit 21f231b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nuget/Microsoft.Windows.CsWinRT.targets
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ $(CsWinRTIncludeWinRTInterop)
To ensure that modifications to input winmds are reflected in generated *.cs files, WinRT.cs is used as a build
marker and updated to the most recent winmd timestamp. UpToDateCheckBuilt then captures the dependency from
winmds to cs files.-->
<Touch Condition="'$(CsWinRTComponent)' != 'true'" Files="$(CsWinRTGeneratedFilesDir)/WinRT.cs" Time="%(CsWinRTInputs.ModifiedTime)"/>
<ItemGroup Condition="'$(CsWinRTComponent)' != 'true'">
<UpToDateCheckBuilt Include="$(CsWinRTGeneratedFilesDir)/WinRT.cs" Original="@(CsWinRTInputs)" />
<Touch Condition="'$(CsWinRTComponent)' != 'true' and Exists('$(CsWinRTGeneratedFilesDir)WinRT.cs')" Files="$(CsWinRTGeneratedFilesDir)WinRT.cs" Time="%(CsWinRTInputs.ModifiedTime)"/>
<ItemGroup Condition="'$(CsWinRTComponent)' != 'true' and Exists('$(CsWinRTGeneratedFilesDir)WinRT.cs')">
<UpToDateCheckBuilt Include="$(CsWinRTGeneratedFilesDir)WinRT.cs" Original="@(CsWinRTInputs)" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit 21f231b

Please sign in to comment.