Skip to content

Commit

Permalink
Inject resx additional files using full path
Browse files Browse the repository at this point in the history
Since they can be linked resource files, we need to use the full path since that's what the generated .editorconfig for them will use.
  • Loading branch information
kzu committed Sep 21, 2020
1 parent 94db888 commit b88664b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ThisAssembly.Strings/ThisAssembly.Strings.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

<Target Name="_InjectRexAdditionalFiles"
BeforeTargets="GenerateMSBuildEditorConfigFileShouldRun"
DependsOnTargets="PrepareResourceNames"
Returns="@(ResxCode)">
DependsOnTargets="PrepareResourceNames">
<ItemGroup>
<ResxCode Include="@(EmbeddedResource)"
Condition="'%(EmbeddedResource.Type)' == 'Resx' And '%(EmbeddedResource.GenerateResource)' != 'false' And '%(EmbeddedResource.ManifestResourceName)' != ''" />
<AdditionalFiles Include="@(ResxCode)" SourceItemType="EmbeddedResource" />
<AdditionalFiles Include="@(ResxCode -> '%(FullPath)')" SourceItemType="EmbeddedResource" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit b88664b

Please sign in to comment.