[tasque] [xbuild] Workaround for unclean I18n xbuild proj file



commit 3418b7d54b72dd7477aefed347798a9853546e2a
Author: Antonius Riha <antoniusriha gmail com>
Date:   Wed Oct 3 20:38:17 2012 +0200

    [xbuild] Workaround for unclean I18n xbuild proj file
    
    The previous fix is not working anymore, because it's overwritten
    in the later imported X.Common.targets file. The new fix is to take
    care of it in X.Common.targets itself. (minor hack)

 build/X.Common.targets |    3 ++-
 po/po.mdproj           |    4 ----
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/build/X.Common.targets b/build/X.Common.targets
index ce1301d..e265448 100644
--- a/build/X.Common.targets
+++ b/build/X.Common.targets
@@ -159,7 +159,8 @@
   
   <!-- Build -->
   <!-- Switch between regular targets and alternative targets -->
-  <PropertyGroup Condition=" '$(AltTarget)' != '' ">
+  <!-- CoreBuild is disable on AltTargets and if the consuming proj is a TranslationProject (which is not MSBuild conform) -->
+  <PropertyGroup Condition=" '$(AltTarget)' != '' Or '$(ItemType)' == 'TranslationProject' ">
     <BuildDependsOn>
       BeforeBuild;
       AfterBuild;
diff --git a/po/po.mdproj b/po/po.mdproj
index c04c582..d89e6ec 100644
--- a/po/po.mdproj
+++ b/po/po.mdproj
@@ -61,10 +61,6 @@
   <PropertyGroup Condition=" '$(Configuration)' == 'Default' " />
   <!-- The above is only for the MD Gettext addin, which provides a convenient environment for translation -->
   <!-- Below are the xbuild instructions. New translations should be added to the GettextTranslation ItemGroup. -->
-  <PropertyGroup>
-    <!-- Disable regular build, since the above is not MSBuild conform. -->
-    <BuildDependsOn>BeforeBuild;AfterBuild</BuildDependsOn>
-  </PropertyGroup>
   <ItemGroup>
     <GettextCompile Include="ca.po" />
     <GettextCompile Include="ca valencia po" />



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]