Created
April 28, 2019 07:36
-
-
Save johanlindfors/d71d7a5f44660c0e5170af0674fa3505 to your computer and use it in GitHub Desktop.
Custom Visual Studio target xml element to inject assets into output assembly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ItemGroup Label="resources_pipeline_output"> | |
<_CustomResource Include="..\..\..\resources\common\**\*"> | |
<Link>resources\%(RecursiveDir)%(FileName)%(Extension)</Link> | |
<DeploymentContent>true</DeploymentContent> | |
</_CustomResource> | |
</ItemGroup> | |
<Target BeforeTargets="AssignTargetPaths" Name="_CollectCustomResources"> | |
<Message Text="Adding resource: %(_CustomResource.Identity) -> %(_CustomResource.Link)" /> | |
<ItemGroup><None Include="@(_CustomResource)" /></ItemGroup> | |
</Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment