Make symbol nuget package when use dotnet-cli
authorWonYoung Choi <wy80.choi@samsung.com>
Tue, 18 Jul 2017 04:10:24 +0000 (13:10 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Tue, 18 Jul 2017 04:10:24 +0000 (13:10 +0900)
Change-Id: I10db4fef70fc30032fd4fdfa25f286ed1199e144

Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets
Tools/dotnet-build.sh
packaging/dotnet-build-tools.spec

index be4fc94..c22e896 100644 (file)
@@ -1,55 +1,14 @@
 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 
-  <!-- UseTizenGBSImportAfterTarget -->
-  <PropertyGroup Condition="'$(UseTizenGBSImportAfterTarget)' == ''">
-    <UseTizenGBSImportAfterTarget>false</UseTizenGBSImportAfterTarget>
-    <UseTizenGBSImportAfterTarget Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Tizen'">true</UseTizenGBSImportAfterTarget>
-  </PropertyGroup>
-
-  <!-- TargetFramework -->
-  <PropertyGroup Condition="'$(TargetFramework)' == ''">
-    <_ShortTargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'">netstandard</_ShortTargetFrameworkIdentifier>
-    <_ShortTargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == 'Tizen'">tizen</_ShortTargetFrameworkIdentifier>
-    <_TargetFrameworkVersionWithoutV Condition="$(TargetFrameworkVersion.StartsWith('v'))">$(TargetFrameworkVersion.Substring(1))</_TargetFrameworkVersionWithoutV>
-    <TargetFramework Condition="'$(_ShortTargetFrameworkIdentifier)' != ''">$(_ShortTargetFrameworkIdentifier)$(_TargetFrameworkVersionWithoutV)</TargetFramework>
-  </PropertyGroup>
 
   <!-- Suppress missing XML comment warning -->
   <PropertyGroup>
     <NoWarn>$(NoWarn);1591</NoWarn>
   </PropertyGroup>
 
-  <!-- Modify BuildDependsOn -->
-  <PropertyGroup Condition="'$(UseTizenGBSImportAfterTarget)' == 'true'">
-    <BuildDependsOn>
-      $(BuildDependsOn);
-      __AppendNuGetAssemblyFiles;
-    </BuildDependsOn>
-  </PropertyGroup>
-
   <!-- DocumentationFile -->
-  <PropertyGroup Condition="'$(UseTizenGBSImportAfterTarget)' == 'true'">
-    <DocumentationFile Condition="'$(DocumentationFile)' == ''">$(OutputPath)$(AssemblyName).xml</DocumentationFile>
-  </PropertyGroup>
-
-  <!-- NuSpec File -->
   <PropertyGroup>
-    <__NuSpecFile>$(MSBuildProjectDirectory)/$(AssemblyName).nuspec</__NuSpecFile>
+    <DocumentationFile Condition="'$(DocumentationFile)' == ''">$(OutputPath)$(AssemblyName).xml</DocumentationFile>
   </PropertyGroup>
 
-  <!-- Additional files to append to .nuspec -->
-  <ItemGroup>
-    <NuGetAssemblyFile Include="$(DocumentationFile)">
-      <TargetPath>lib/$(TargetFramework)</TargetPath>
-    </NuGetAssemblyFile>
-    <NuGetAssemblyFile Include="$(OutputPath)$(TargetFileName)">
-      <TargetPath>lib/$(TargetFramework)</TargetPath>
-    </NuGetAssemblyFile>
-  </ItemGroup>
-
-  <!-- Append _NuGetFiles to .nuspec file -->
-  <Target Name="__AppendNuGetAssemblyFiles" Condition="Exists('$(__NuSpecFile)')">
-    <Exec Command="dotnet-build nuspec_addfile &quot;$(__NuSpecFile)&quot; &quot;%(NuGetAssemblyFile.Identity)&quot; &quot;%(NuGetAssemblyFile.TargetPath)&quot;" />
-  </Target>
-
 </Project>
index bd967b4..c8ade71 100755 (executable)
@@ -121,7 +121,7 @@ cmd_pack() {
   if $USE_DOTNET_CLI; then
     [ -n "$CONFIGURATION" ] && OPTS="$OPTS -c $CONFIGURATION"
     [ -n "$VERSION" ] && OPTS="$OPTS /p:Version=$VERSION"
-    run_dotnet pack --no-restore $PROJECT $OPTS $@
+    run_dotnet pack --no-restore --include-symbols $PROJECT $OPTS $@
   else
     local NUSPEC=($PROJECT)
     if [ -d $PROJECT ]; then
index b3ce37e..6387c43 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       dotnet-build-tools
 Summary:    Tools for building C# API projects
-Version:    1.2.8
+Version:    1.3.0
 Release:    1
 Group:      Development/Libraries
 License:    MIT and Apache-2.0