diff options
author | CeRiAl <ikhatib@gmail.com> | 2017-11-07 23:44:10 +0300 |
---|---|---|
committer | CeRiAl <ikhatib@gmail.com> | 2017-11-21 01:32:44 +0300 |
commit | 19465af63c444961ed1874b5e70f489816fb0897 (patch) | |
tree | ae70440b3804877e29a27ac7b271b92915a56cbd /hakchi_gui.csproj | |
parent | 6b89719f1623d4fc3cff73af7cf1d71d59344e5e (diff) |
Update hakchi_gui.csproj: Add new target MoveLanguageResourceFiles, remove PostBuildEvent scripts
Diffstat (limited to 'hakchi_gui.csproj')
-rw-r--r-- | hakchi_gui.csproj | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj index 4067a06f..d74544af 100644 --- a/hakchi_gui.csproj +++ b/hakchi_gui.csproj @@ -2695,12 +2695,8 @@ </PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
- <PostBuildEvent>if exist languages rd /S /Q languages
-md languages
-for /D %25%25i in (*.*) do if exist %25%25i\hakchi.resources.dll move /Y %25%25i languages\%25%25i
-
-rem del *.application
-rem del *.manifest</PostBuildEvent>
+ <PostBuildEvent>
+ </PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
@@ -2709,4 +2705,14 @@ rem del *.manifest</PostBuildEvent> <Target Name="AfterBuild">
</Target>
-->
+ <PropertyGroup>
+ <BuildDependsOn>$(BuildDependsOn);MoveLanguageResourceFiles;</BuildDependsOn>
+ </PropertyGroup>
+ <Target Name="MoveLanguageResourceFiles">
+ <ItemGroup>
+ <LanguageResourceFiles Include="$(OutDir)**\hakchi.resources.dll;" Exclude="$(OutDir)languages\**\*.*" />
+ </ItemGroup>
+ <Copy SourceFiles="@(LanguageResourceFiles)" DestinationFolder="$(OutDir)languages\%(RecursiveDir)" SkipUnchangedFiles="true" />
+ <RemoveDir Directories="$(OutDir)%(LanguageResourceFiles.RecursiveDir);" />
+ </Target>
</Project>
|