[tasque/xbuild] [xbuild] Set up deafault PackageName



commit 02d69ff8a476fbf20b4e9af97894f367087002a9
Author: Antonius Riha <antoniusriha gmail com>
Date:   Wed Oct 3 13:03:36 2012 +0200

    [xbuild] Set up deafault PackageName

 build/X.Common.targets                             |   10 ++++------
 data/data.mdproj                                   |    1 -
 po/po.mdproj                                       |    1 -
 src/Addins/Backends/Dummy/DummyBackend.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/libtasque/libtasque.csproj                     |    1 -
 src/tasque/tasque.csproj                           |    1 -
 tests/tests.csproj                                 |    1 -
 13 files changed, 4 insertions(+), 18 deletions(-)
---
diff --git a/build/X.Common.targets b/build/X.Common.targets
index 118620f..1ee54ae 100644
--- a/build/X.Common.targets
+++ b/build/X.Common.targets
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" InitialTargets="_SetupInitialProperties;_CheckProperties;" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+<Project DefaultTargets="Build" InitialTargets="_SetupInitialProperties" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
   <Target Name="_SetupInitialProperties">
     
     <!-- TopBuildDir: Get rel path for AbsTopBuildDir -->
@@ -38,6 +38,9 @@
     <!-- if AltTarget is set, disable AutoInstall -->
     <AutoInstall Condition=" '$(AltTarget)' != '' ">false</AutoInstall>
     
+    <!-- Package name defaults to solution name -->
+    <PackageName>$(SolutionName)</PackageName>
+    
     <!-- Global dirs -->
     <!-- Assume AbsTopBuildDir is the dir, where the sln resides -->
     <AbsTopBuildDir Condition=" '$(AbsTopBuildDir)' == '' ">$(SolutionDir)</AbsTopBuildDir>
@@ -269,11 +272,6 @@
   </Target>
   
   <!-- Private -->
-  <Target Name="_CheckProperties">
-    <Error Condition=" '$(PackageName)' == '' " Text="PackageName is not set." />
-    <Message Text="Prefix=$(Prefix)" />
-  </Target>
-
   <Target Name="_GetSrcDirStrip">
     <GetSrcDirStrip MSBuildProjectDir="$(MSBuildProjectDirectory)" AbsTopBuildDir="$(AbsTopBuildDir)">
       <Output TaskParameter="SrcDirStrip" PropertyName="SrcDirStrip" />
diff --git a/data/data.mdproj b/data/data.mdproj
index dfa8c3e..13a17be 100644
--- a/data/data.mdproj
+++ b/data/data.mdproj
@@ -8,7 +8,6 @@
     <SchemaVersion>2.0</SchemaVersion>
     <ProjectGuid>{6F2F4BAA-3C60-464D-B757-9DD18FED0BAA}</ProjectGuid>
     <OutputPath>.</OutputPath>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Linux|AnyCPU' ">
diff --git a/po/po.mdproj b/po/po.mdproj
index d7cdbb2..c04c582 100644
--- a/po/po.mdproj
+++ b/po/po.mdproj
@@ -62,7 +62,6 @@
   <!-- 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>
-    <PackageName>tasque</PackageName>
     <!-- Disable regular build, since the above is not MSBuild conform. -->
     <BuildDependsOn>BeforeBuild;AfterBuild</BuildDependsOn>
   </PropertyGroup>
diff --git a/src/Addins/Backends/Dummy/DummyBackend.csproj b/src/Addins/Backends/Dummy/DummyBackend.csproj
index dadbb93..4fd4c30 100644
--- a/src/Addins/Backends/Dummy/DummyBackend.csproj
+++ b/src/Addins/Backends/Dummy/DummyBackend.csproj
@@ -12,7 +12,6 @@
     <AssemblyName>DummyBackend</AssemblyName>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
     <BuildEnabled>$(EnableBackendDummy)</BuildEnabled>
   </PropertyGroup>
diff --git a/src/Addins/Backends/Hiveminder/HiveminderBackend.csproj b/src/Addins/Backends/Hiveminder/HiveminderBackend.csproj
index 0360637..50cd86c 100644
--- a/src/Addins/Backends/Hiveminder/HiveminderBackend.csproj
+++ b/src/Addins/Backends/Hiveminder/HiveminderBackend.csproj
@@ -12,7 +12,6 @@
     <AssemblyName>HiveminderBackend</AssemblyName>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
     <BuildEnabled>$(EnableBackendHiveminder)</BuildEnabled>
   </PropertyGroup>
diff --git a/src/Addins/Backends/IceCore/IceCoreBackend.csproj b/src/Addins/Backends/IceCore/IceCoreBackend.csproj
index caa4fd6..075c9e8 100644
--- a/src/Addins/Backends/IceCore/IceCoreBackend.csproj
+++ b/src/Addins/Backends/IceCore/IceCoreBackend.csproj
@@ -12,7 +12,6 @@
     <AssemblyName>IceCoreBackend</AssemblyName>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
     <BuildEnabled>$(EnableBackendIceCore)</BuildEnabled>
   </PropertyGroup>
diff --git a/src/Addins/Backends/Rtm/RtmBackend.csproj b/src/Addins/Backends/Rtm/RtmBackend.csproj
index 4773439..20887f3 100644
--- a/src/Addins/Backends/Rtm/RtmBackend.csproj
+++ b/src/Addins/Backends/Rtm/RtmBackend.csproj
@@ -12,7 +12,6 @@
     <AssemblyName>RtmBackend</AssemblyName>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
     <BuildEnabled>$(EnableBackendRtm)</BuildEnabled>
   </PropertyGroup>
diff --git a/src/Addins/Backends/Sqlite/SqliteBackend.csproj b/src/Addins/Backends/Sqlite/SqliteBackend.csproj
index 471fba1..52df223 100644
--- a/src/Addins/Backends/Sqlite/SqliteBackend.csproj
+++ b/src/Addins/Backends/Sqlite/SqliteBackend.csproj
@@ -12,7 +12,6 @@
     <AssemblyName>SqliteBackend</AssemblyName>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
     <BuildEnabled>$(EnableBackendSqlite)</BuildEnabled>
   </PropertyGroup>
diff --git a/src/Gtk.Tasque/Gtk.Tasque.csproj b/src/Gtk.Tasque/Gtk.Tasque.csproj
index b3c51a6..2c7f832 100644
--- a/src/Gtk.Tasque/Gtk.Tasque.csproj
+++ b/src/Gtk.Tasque/Gtk.Tasque.csproj
@@ -13,7 +13,6 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <GtkSharp12 Condition=" '$(EnableGtkSharp12)' == '' Or '$(EnableGtkSharp12)' ">GTK_2_12</GtkSharp12>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LinuxDebug|AnyCPU' ">
diff --git a/src/Libraries/RtmNet/RtmNet.csproj b/src/Libraries/RtmNet/RtmNet.csproj
index 89d45b9..61eeb99 100644
--- a/src/Libraries/RtmNet/RtmNet.csproj
+++ b/src/Libraries/RtmNet/RtmNet.csproj
@@ -12,7 +12,6 @@
     <RootNamespace>RtmNet</RootNamespace>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
     <BuildEnabled>$(EnableBackendRtm)</BuildEnabled>
   </PropertyGroup>
diff --git a/src/libtasque/libtasque.csproj b/src/libtasque/libtasque.csproj
index 4fd68ed..5ce71b8 100644
--- a/src/libtasque/libtasque.csproj
+++ b/src/libtasque/libtasque.csproj
@@ -12,7 +12,6 @@
     <AssemblyName>libtasque</AssemblyName>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
diff --git a/src/tasque/tasque.csproj b/src/tasque/tasque.csproj
index d796a3f..afb1055 100644
--- a/src/tasque/tasque.csproj
+++ b/src/tasque/tasque.csproj
@@ -12,7 +12,6 @@
     <AssemblyName>Tasque</AssemblyName>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'GtkLinuxDebug|AnyCPU' ">
diff --git a/tests/tests.csproj b/tests/tests.csproj
index 0c81521..fdaa30a 100644
--- a/tests/tests.csproj
+++ b/tests/tests.csproj
@@ -12,7 +12,6 @@
     <AssemblyName>Tasque.Tests</AssemblyName>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
-    <PackageName>tasque</PackageName>
     <ReleaseVersion>0.1.12</ReleaseVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">



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