Skip to content

Commit

Permalink
Run _GenerateResxSource target before BeforeCompile target. (dotnet#4062
Browse files Browse the repository at this point in the history
)

The Common.targets convention is to hook code-generation targets to BeforeCompile.
Fixes dotnet/sourcelink#392
  • Loading branch information
tmat committed Apr 16, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1a55276 commit 666f928
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -18,8 +18,11 @@
</EmbeddedResource>
</ItemGroup>

<!--
Note: Targets that generate Compile items are expected to run before BeforeCompile targets (common targets convention).
-->
<Target Name="_GenerateResxSource"
BeforeTargets="CoreCompile"
BeforeTargets="BeforeCompile"
DependsOnTargets="PrepareResourceNames;
_GetEmbeddedResourcesWithSourceGeneration;
_BatchGenerateResxSource">

0 comments on commit 666f928

Please sign in to comment.