Browse Source

Improve sort-resx - only run after resx file changes

pull/2119/head
Siegfried Pammer 5 years ago
parent
commit
ef200c0f6c
  1. 10
      ILSpy/ILSpy.csproj

10
ILSpy/ILSpy.csproj

@ -845,11 +845,19 @@ @@ -845,11 +845,19 @@
<Import Project="$(VCToolsVersionPropsFile)" Condition="Exists('$(VCToolsVersionPropsFile)')" />
<Target Name="SortResX" BeforeTargets="BeforeBuild">
<ItemGroup>
<SortResXInput Include="Properties\*.resx" />
<SortResXInput Include="..\ILSpy.AddIn\*.resx" />
<SortResXInput Include="..\ILSpy.ReadyToRun\Properties\*.resx" />
<SortResXStamp Include="obj\sort-resx.stamp" />
</ItemGroup>
<Target Name="SortResX" BeforeTargets="BeforeBuild" Inputs="@(SortResXInput)" Outputs="@(SortResXStamp)">
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<SortResX>powershell -NoProfile -ExecutionPolicy Bypass -File BuildTools/sort-resx.ps1</SortResX>
</PropertyGroup>
<Exec WorkingDirectory=".." Command="$(SortResX)" Timeout="60000" />
<Touch Files="@(SortResXStamp)" AlwaysCreate="true" />
</Target>
<Target Name="ApplyStackExtension" AfterTargets="PostBuildEvent">

Loading…
Cancel
Save