Revert removing Tizen.GBS.ImportAfter.targets accepted/tizen/4.0/unified/20170904.144009 accepted/tizen/unified/20170901.030119 submit/tizen/20170831.100824 submit/tizen_4.0/20170904.045648
authorWonYoung Choi <wy80.choi@samsung.com>
Thu, 31 Aug 2017 09:52:29 +0000 (18:52 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Thu, 31 Aug 2017 09:52:29 +0000 (18:52 +0900)
Tizen.GBS.ImportAfter.targets file adds XML documentation to each
project build when using %dotnet_build macro

Change-Id: I7e1c1209bad53d3da8c10126e9c8f43ae903bc1b

Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets [new file with mode: 0644]
packaging/dotnet-build-tools.spec
packaging/macros.dotnet-build-tools

diff --git a/Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets b/Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets
new file mode 100644 (file)
index 0000000..d8aab8d
--- /dev/null
@@ -0,0 +1,11 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+  <PropertyGroup Condition=" '$(UsingRPMMacro)' == 'true' ">
+
+    <!-- DocumentationFile -->
+    <NoWarn>$(NoWarn);1591</NoWarn>
+    <DocumentationFile Condition="'$(DocumentationFile)' == ''">$(OutputPath)$(AssemblyName).xml</DocumentationFile>
+
+  </PropertyGroup>
+
+</Project>
index c28b70f..87fae55 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       dotnet-build-tools
 Summary:    Tools for building C# API projects
-Version:    1.3.1
+Version:    1.3.2
 Release:    1
 Group:      Development/Libraries
 License:    MIT and Apache-2.0
@@ -64,6 +64,9 @@ mkdir -p %{buildroot}%{CLI_PATH}
 cp -fr ./dotnet/* %{buildroot}%{CLI_PATH}
 ln -s %{CLI_PATH}/dotnet %{buildroot}%{_bindir}/dotnet
 
+# Tizen.GBS.BuildTasks
+install -p -m 644 Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets %{buildroot}%{CLI_PATH}/sdk/*/15.0/Microsoft.Common.targets/ImportAfter
+
 # NuGet
 mkdir -p %{buildroot}%{NUGET_PATH}
 install -p -m 755 NuGet/* %{buildroot}%{NUGET_PATH}
index 9cd4b95..6e5cd20 100644 (file)
@@ -46,11 +46,11 @@ dotnet-build -s %{-s:%{-s*}}%{!-s:%{_dotnet_nuget_source}} restore %{1} %{?2} %{
 %{nil}
 
 %dotnet_build(s:) \
-dotnet-build -c %{_dotnet_build_conf} -s %{-s:%{-s*}}%{!-s:%{_dotnet_nuget_source}} build %{1} %{?2} %{?3} %{?4} %{?5} %{?6} \
+dotnet-build -c %{_dotnet_build_conf} -s %{-s:%{-s*}}%{!-s:%{_dotnet_nuget_source}} build %{1} /p:UsingRPMMacro=true %{?2} %{?3} %{?4} %{?5} %{?6} \
 %{nil}
 
 %dotnet_pack() \
-dotnet-build -c %{_dotnet_build_conf} %{?2:-v %{2}} pack %{1} %{?3} %{?4} %{?5} %{?6} %{?7} \
+dotnet-build -c %{_dotnet_build_conf} %{?2:-v %{2}} pack %{1} /p:UsingRPMMacro=true %{?3} %{?4} %{?5} %{?6} %{?7} \
 %{nil}
 
 %dotnet_install_assembly() \