[tasque/xbuild] [xbuild] Fix "wrong version number in Defines.cs"



commit cac27bad76213a02238f9baa41e9b089488afa24
Author: Antonius Riha <antoniusriha gmail com>
Date:   Wed Sep 19 21:53:13 2012 +0200

    [xbuild] Fix "wrong version number in Defines.cs"
    
    Control version number in xbuild files via MD solution options. The
    property ReleaseVersion has been added to each proj file.

 build/Tasque.targets                               |    2 +-
 build/build.csproj                                 |    1 +
 data/data.mdproj                                   |    1 +
 po/po.mdproj                                       |    1 +
 src/Addins/Backends/Dummy/DummyBackend.csproj      |    1 +
 src/Addins/Backends/Eds/EdsBackend.csproj          |    1 +
 .../Backends/Hiveminder/HiveminderBackend.csproj   |    1 +
 src/Addins/Backends/IceCore/IceCoreBackend.csproj  |    1 +
 src/Addins/Backends/Rtm/RtmBackend.csproj          |    1 +
 src/Addins/Backends/Sqlite/SqliteBackend.csproj    |    1 +
 src/Gtk.Tasque/Gtk.Tasque.csproj                   |    1 +
 src/Libraries/RtmNet/RtmNet.csproj                 |    1 +
 src/MonoMac.Tasque/MonoMac.Tasque.csproj           |    1 +
 src/libtasque/libtasque.csproj                     |    1 +
 src/tasque/tasque.csproj                           |    1 +
 tasque.sln                                         |   13 +++++++------
 tests/tests.csproj                                 |    1 +
 17 files changed, 23 insertions(+), 7 deletions(-)
---
diff --git a/build/Tasque.targets b/build/Tasque.targets
index 11e1739..18c5823 100644
--- a/build/Tasque.targets
+++ b/build/Tasque.targets
@@ -19,7 +19,7 @@
     <PkgConfigDir Condition=" '$(PkgConfigDir)' == '' ">$(LibDir)\pkgconfig</PkgConfigDir>
     <DestDir Condition=" '$(DestDir)' != '' And !HasTrailingSlash('$(DestDir)')">$(DestDir)\</DestDir>
     <Wrapper Condition=" '$(Wrapper)' == '' ">$(PackageName)</Wrapper>
-    <Version Condition=" '$(Version)' == '' ">1.0.0</Version>
+    <Version Condition=" '$(Version)' == '' ">$(ReleaseVersion)</Version>
     
     <!-- Icon and sound dirs -->
     <HiColorDir Condition=" '$(HiColorDir)' == '' ">$(DataDir)\icons\hicolor</HiColorDir>
diff --git a/build/build.csproj b/build/build.csproj
index dd8f47b..41532ce 100644
--- a/build/build.csproj
+++ b/build/build.csproj
@@ -12,6 +12,7 @@
     <AssemblyName>build</AssemblyName>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/data/data.mdproj b/data/data.mdproj
index b908667..7299970 100644
--- a/data/data.mdproj
+++ b/data/data.mdproj
@@ -11,6 +11,7 @@
     <PackageName>tasque</PackageName>
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..</TopSrcDir>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Linux|AnyCPU' ">
   </PropertyGroup>
diff --git a/po/po.mdproj b/po/po.mdproj
index 4b9626c..fbebb92 100644
--- a/po/po.mdproj
+++ b/po/po.mdproj
@@ -56,6 +56,7 @@
         <Translation isoCode="zh_TW" />
       </translations>
     </translations>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)' == 'Default' " />
   <!-- The above is only for the MD Gettext addin, which provides a convenient environment for translation -->
diff --git a/src/Addins/Backends/Dummy/DummyBackend.csproj b/src/Addins/Backends/Dummy/DummyBackend.csproj
index 6840d9f..3c8e04b 100644
--- a/src/Addins/Backends/Dummy/DummyBackend.csproj
+++ b/src/Addins/Backends/Dummy/DummyBackend.csproj
@@ -15,6 +15,7 @@
     <PackageName>tasque</PackageName>
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\..\..\..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..\..\..\..</TopSrcDir>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'GtkDebug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/src/Addins/Backends/Eds/EdsBackend.csproj b/src/Addins/Backends/Eds/EdsBackend.csproj
index aebec03..f2b80e7 100644
--- a/src/Addins/Backends/Eds/EdsBackend.csproj
+++ b/src/Addins/Backends/Eds/EdsBackend.csproj
@@ -12,6 +12,7 @@
     <AssemblyName>EdsBackend</AssemblyName>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'GtkDebug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/src/Addins/Backends/Hiveminder/HiveminderBackend.csproj b/src/Addins/Backends/Hiveminder/HiveminderBackend.csproj
index 53d237e..63d7810 100644
--- a/src/Addins/Backends/Hiveminder/HiveminderBackend.csproj
+++ b/src/Addins/Backends/Hiveminder/HiveminderBackend.csproj
@@ -15,6 +15,7 @@
     <PackageName>tasque</PackageName>
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\..\..\..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..\..\..\..</TopSrcDir>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'GtkDebug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/src/Addins/Backends/IceCore/IceCoreBackend.csproj b/src/Addins/Backends/IceCore/IceCoreBackend.csproj
index 5af8b2e..bacd353 100644
--- a/src/Addins/Backends/IceCore/IceCoreBackend.csproj
+++ b/src/Addins/Backends/IceCore/IceCoreBackend.csproj
@@ -15,6 +15,7 @@
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\..\..\..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..\..\..\..</TopSrcDir>
     <PackageName>tasque</PackageName>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'GtkDebug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/src/Addins/Backends/Rtm/RtmBackend.csproj b/src/Addins/Backends/Rtm/RtmBackend.csproj
index 4e936c6..71abf8e 100644
--- a/src/Addins/Backends/Rtm/RtmBackend.csproj
+++ b/src/Addins/Backends/Rtm/RtmBackend.csproj
@@ -15,6 +15,7 @@
     <PackageName>tasque</PackageName>
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\..\..\..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..\..\..\..</TopSrcDir>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'GtkDebug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/src/Addins/Backends/Sqlite/SqliteBackend.csproj b/src/Addins/Backends/Sqlite/SqliteBackend.csproj
index eeae9d2..3117772 100644
--- a/src/Addins/Backends/Sqlite/SqliteBackend.csproj
+++ b/src/Addins/Backends/Sqlite/SqliteBackend.csproj
@@ -15,6 +15,7 @@
     <PackageName>tasque</PackageName>
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\..\..\..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..\..\..\..</TopSrcDir>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'GtkDebug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/src/Gtk.Tasque/Gtk.Tasque.csproj b/src/Gtk.Tasque/Gtk.Tasque.csproj
index 4e59c96..6604edf 100644
--- a/src/Gtk.Tasque/Gtk.Tasque.csproj
+++ b/src/Gtk.Tasque/Gtk.Tasque.csproj
@@ -18,6 +18,7 @@
     <PackageName>tasque</PackageName>
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..\..</TopSrcDir>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LinuxDebug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/src/Libraries/RtmNet/RtmNet.csproj b/src/Libraries/RtmNet/RtmNet.csproj
index f7709c1..37147ef 100644
--- a/src/Libraries/RtmNet/RtmNet.csproj
+++ b/src/Libraries/RtmNet/RtmNet.csproj
@@ -15,6 +15,7 @@
     <PackageName>tasque</PackageName>
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\..\..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..\..\..</TopSrcDir>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/src/MonoMac.Tasque/MonoMac.Tasque.csproj b/src/MonoMac.Tasque/MonoMac.Tasque.csproj
index da0f477..b91968e 100644
--- a/src/MonoMac.Tasque/MonoMac.Tasque.csproj
+++ b/src/MonoMac.Tasque/MonoMac.Tasque.csproj
@@ -9,6 +9,7 @@
     <OutputType>Library</OutputType>
     <RootNamespace>MonoMac.Tasque</RootNamespace>
     <AssemblyName>MonoMac.Tasque</AssemblyName>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/src/libtasque/libtasque.csproj b/src/libtasque/libtasque.csproj
index 1522296..434c503 100644
--- a/src/libtasque/libtasque.csproj
+++ b/src/libtasque/libtasque.csproj
@@ -15,6 +15,7 @@
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..\..</TopSrcDir>
     <PackageName>tasque</PackageName>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/src/tasque/tasque.csproj b/src/tasque/tasque.csproj
index 9d7330d..34c61d5 100644
--- a/src/tasque/tasque.csproj
+++ b/src/tasque/tasque.csproj
@@ -15,6 +15,7 @@
     <PackageName>tasque</PackageName>
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..\..</TopSrcDir>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'GtkLinuxDebug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/tasque.sln b/tasque.sln
index 2541941..de8764b 100644
--- a/tasque.sln
+++ b/tasque.sln
@@ -155,16 +155,16 @@ Global
 		{B19B9840-669D-4984-9772-E1F55193A67F}.MonoMacRelease|Any CPU.ActiveCfg = LinuxRelease|Any CPU
 		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkLinuxDebug|Any CPU.ActiveCfg = Debug|Any CPU
 		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkLinuxDebug|Any CPU.Build.0 = Debug|Any CPU
-		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkLinuxRelease|Any CPU.ActiveCfg = Release|Any CPU
-		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkLinuxRelease|Any CPU.Build.0 = Release|Any CPU
+		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkLinuxRelease|Any CPU.ActiveCfg = Debug|Any CPU
+		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkLinuxRelease|Any CPU.Build.0 = Debug|Any CPU
 		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkWinDebug|Any CPU.ActiveCfg = Debug|Any CPU
 		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkWinDebug|Any CPU.Build.0 = Debug|Any CPU
-		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkWinRelease|Any CPU.ActiveCfg = Release|Any CPU
-		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkWinRelease|Any CPU.Build.0 = Release|Any CPU
+		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkWinRelease|Any CPU.ActiveCfg = Debug|Any CPU
+		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.GtkWinRelease|Any CPU.Build.0 = Debug|Any CPU
 		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.MonoMacDebug|Any CPU.ActiveCfg = Debug|Any CPU
 		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.MonoMacDebug|Any CPU.Build.0 = Debug|Any CPU
-		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.MonoMacRelease|Any CPU.ActiveCfg = Release|Any CPU
-		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.MonoMacRelease|Any CPU.Build.0 = Release|Any CPU
+		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.MonoMacRelease|Any CPU.ActiveCfg = Debug|Any CPU
+		{BCC1964F-A6E3-4912-B120-6DA22C0EB294}.MonoMacRelease|Any CPU.Build.0 = Debug|Any CPU
 		{CC8935CB-342C-4FDA-BAF1-24FA3EB53490}.GtkLinuxDebug|Any CPU.ActiveCfg = GtkDebug|Any CPU
 		{CC8935CB-342C-4FDA-BAF1-24FA3EB53490}.GtkLinuxDebug|Any CPU.Build.0 = GtkDebug|Any CPU
 		{CC8935CB-342C-4FDA-BAF1-24FA3EB53490}.GtkLinuxRelease|Any CPU.ActiveCfg = GtkRelease|Any CPU
@@ -207,6 +207,7 @@ Global
 	EndGlobalSection
 	GlobalSection(MonoDevelopProperties) = preSolution
 		StartupItem = src\tasque\tasque.csproj
+		version = 0.1.12
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
diff --git a/tests/tests.csproj b/tests/tests.csproj
index 491119d..243b2d1 100644
--- a/tests/tests.csproj
+++ b/tests/tests.csproj
@@ -15,6 +15,7 @@
     <PackageName>tasque</PackageName>
     <RelPrefix Condition=" '$(RelPrefix)' == '' ">..\build\bin</RelPrefix>
     <TopSrcDir Condition=" '$(TopSrcDir)' == '' ">..</TopSrcDir>
+    <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>



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