Skip to content

Commit

Permalink
Generate files before compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Jan 22, 2025
1 parent b11b218 commit e207c72
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Watch Include="$(GeneratedClientSpecFile)" />
</ItemGroup>

<Target Name="EnsureClientUpdated" AfterTargets="AfterBuild;CompileDesignTime">
<Target Name="EnsureClientUpdated" BeforeTargets="CoreCompile;CompileDesignTime">
<CallTarget Targets="GenerateClient" Condition="!Exists('$(GeneratedClientLockFile)')" />
<CallTarget Targets="UpdateClient" Condition="Exists('$(GeneratedClientLockFile)')" />
</Target>
Expand All @@ -39,7 +39,7 @@
/>

<ItemGroup>
<Compile Include="$(GeneratedClientDirectory)**/*.cs" KeepDuplicates="false" />
<Compile Update="$(GeneratedClientDirectory)**/*.cs" KeepDuplicates="false" />
</ItemGroup>
</Target>

Expand All @@ -61,7 +61,7 @@
</ItemGroup>

<ItemGroup>
<Folder Include="Generated\" />
<Folder Include="$(GeneratedClientDirectory)" />
</ItemGroup>

</Project>

0 comments on commit e207c72

Please sign in to comment.