From: WonYoung Choi Date: Thu, 20 Jul 2017 22:31:51 +0000 (+0900) Subject: Set AssemblyVersion to 1.0.0.0 as default X-Git-Tag: submit/tizen/20170720.223242~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a49dea8599271849ee1525248a23c67a6ae499e;p=platform%2Fcore%2Fdotnet%2Fbuild-tools.git Set AssemblyVersion to 1.0.0.0 as default Change-Id: Ie481e542a9501534228bee0014174dd9fb6df72c --- diff --git a/Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets b/Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets index be4fc94..b9cd062 100644 --- a/Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets +++ b/Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets @@ -1,55 +1,14 @@ - - - false - true - - - - - <_ShortTargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'">netstandard - <_ShortTargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == 'Tizen'">tizen - <_TargetFrameworkVersionWithoutV Condition="$(TargetFrameworkVersion.StartsWith('v'))">$(TargetFrameworkVersion.Substring(1)) - $(_ShortTargetFrameworkIdentifier)$(_TargetFrameworkVersionWithoutV) - + - - + $(NoWarn);1591 - - - - - - $(BuildDependsOn); - __AppendNuGetAssemblyFiles; - - - - - $(OutputPath)$(AssemblyName).xml - - - - <__NuSpecFile>$(MSBuildProjectDirectory)/$(AssemblyName).nuspec - + + 1.0.0.0 - - - - lib/$(TargetFramework) - - - lib/$(TargetFramework) - - - - - - - + diff --git a/Tools/dotnet-build.sh b/Tools/dotnet-build.sh index b9e636f..640b452 100755 --- a/Tools/dotnet-build.sh +++ b/Tools/dotnet-build.sh @@ -105,7 +105,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 --no-build $PROJECT $OPTS $@ else local NUSPEC=($PROJECT) if [ -d $PROJECT ]; then diff --git a/packaging/dotnet-build-tools.spec b/packaging/dotnet-build-tools.spec index b3ce37e..f893025 100644 --- a/packaging/dotnet-build-tools.spec +++ b/packaging/dotnet-build-tools.spec @@ -3,7 +3,7 @@ Name: dotnet-build-tools Summary: Tools for building C# API projects -Version: 1.2.8 +Version: 1.2.9 Release: 1 Group: Development/Libraries License: MIT and Apache-2.0 @@ -65,8 +65,6 @@ cp -fr ./dotnet/* %{buildroot}%{CLI_PATH} ln -s %{CLI_PATH}/dotnet %{buildroot}%{_bindir}/dotnet # Tizen.GBS.BuildTasks -mkdir -p %{buildroot}%{XBUILD_PATH}/14.0/Microsoft.Common.targets/ImportAfter -install -p -m 644 Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets %{buildroot}%{XBUILD_PATH}/14.0/Microsoft.Common.targets/ImportAfter install -p -m 644 Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets %{buildroot}%{CLI_PATH}/sdk/*/15.0/Microsoft.Common.targets/ImportAfter # NuGet diff --git a/packaging/macros.dotnet-build-tools b/packaging/macros.dotnet-build-tools index 9cd4b95..6e5cd20 100644 --- a/packaging/macros.dotnet-build-tools +++ b/packaging/macros.dotnet-build-tools @@ -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() \