File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ if "%config%" == "" (
55)
66
77set version =
8+ set versionPlaceholder =
89if not " %PackageVersion% " == " " (
910 set version = -Version %PackageVersion%
11+ set versionPlaceholder = -p packageVersion=%PackageVersion%
1012)
1113
1214
@@ -41,11 +43,11 @@ IF %ERRORLEVEL% NEQ 0 goto error
4143REM Package
4244mkdir artifacts
4345mkdir artifacts\packages
44- call :ExecuteCmd tools\nuget.exe pack " src\NuGet.Server.Core\NuGet.Server.Core.csproj" -symbols -o artifacts\packages -p Configuration=%config% %version%
46+ call :ExecuteCmd tools\nuget.exe pack " src\NuGet.Server.Core\NuGet.Server.Core.csproj" -symbols -o artifacts\packages -p Configuration=%config% %versionPlaceholder% % version%
4547IF %ERRORLEVEL% NEQ 0 goto error
46- call :ExecuteCmd tools\nuget.exe pack " src\NuGet.Server\NuGet.Server.csproj" -symbols -o artifacts\packages -p Configuration=%config% %version%
48+ call :ExecuteCmd tools\nuget.exe pack " src\NuGet.Server\NuGet.Server.csproj" -symbols -o artifacts\packages -p Configuration=%config% %versionPlaceholder% % version%
4749IF %ERRORLEVEL% NEQ 0 goto error
48- call :ExecuteCmd tools\nuget.exe pack " src\NuGet.Server.V2\NuGet.Server.V2.csproj" -symbols -o artifacts\packages -p Configuration=%config% %version%
50+ call :ExecuteCmd tools\nuget.exe pack " src\NuGet.Server.V2\NuGet.Server.V2.csproj" -symbols -o artifacts\packages -p Configuration=%config% %versionPlaceholder% % version%
4951IF %ERRORLEVEL% NEQ 0 goto error
5052
5153
Original file line number Diff line number Diff line change 22<package >
33 <metadata minClientVersion =" 2.6" >
44 <id >$id$</id >
5- <version >$version $</version >
5+ <version >$packageVersion $</version >
66 <description >$description$</description >
77 <authors >.NET Foundation</authors >
88 <owners >$author$</owners >
Original file line number Diff line number Diff line change 105105 </ItemGroup >
106106 <ItemGroup >
107107 <None Include =" app.config" />
108- <None Include =" NuGet.Server.V2.nuspec" />
108+ <None Include =" NuGet.Server.V2.nuspec" >
109+ <SubType >Designer</SubType >
110+ </None >
109111 <None Include =" packages.config" />
110112 </ItemGroup >
111113 <ItemGroup >
Original file line number Diff line number Diff line change 22<package >
33 <metadata minClientVersion =" 2.6" >
44 <id >$id$</id >
5- <version >$version $</version >
5+ <version >$packageVersion $</version >
66 <description >$description$</description >
77 <authors >.NET Foundation</authors >
88 <owners >$author$</owners >
1616 <dependency id =" Microsoft.Web.Xdt" version =" [2.1.1,)" />
1717 <dependency id =" Newtonsoft.Json" version =" [8.0.3,)" />
1818 <dependency id =" NuGet.Core" version =" [2.14.0-rtm-830,)" />
19- <dependency id =" NuGet.Server.Core" version =" $version $" />
19+ <dependency id =" NuGet.Server.Core" version =" $packageVersion $" />
2020
2121 <dependency id =" Microsoft.AspNet.WebApi.Client" version =" [5.2.3,)" />
2222 <dependency id =" Microsoft.AspNet.WebApi.Core" version =" [5.2.3,)" />
Original file line number Diff line number Diff line change 22<package >
33 <metadata minClientVersion =" 2.6" >
44 <id >$id$</id >
5- <version >$version $</version >
5+ <version >$packageVersion $</version >
66 <description >$description$</description >
77 <authors >.NET Foundation</authors >
88 <owners >$author$</owners >
1818 <dependencies >
1919 <dependency id =" Microsoft.Web.Xdt" version =" [2.1.1,)" />
2020 <dependency id =" NuGet.Core" version =" [2.14.0-rtm-830,)" />
21- <dependency id =" NuGet.Server.Core" version =" $version $" />
22- <dependency id =" NuGet.Server.V2" version =" $version $" />
21+ <dependency id =" NuGet.Server.Core" version =" $packageVersion $" />
22+ <dependency id =" NuGet.Server.V2" version =" $packageVersion $" />
2323 </dependencies >
2424 </metadata >
2525</package >
You can’t perform that action at this time.
0 commit comments