Skip to content

Commit

Permalink
Build Restier nuget packages
Browse files Browse the repository at this point in the history
build.cmd works with vs2015.
version: 0.3 beta-3
  • Loading branch information
congysu committed Oct 19, 2015
1 parent 1f4ad52 commit 29b331e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 6 deletions.
30 changes: 30 additions & 0 deletions BuildNuGets.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@ECHO OFF
pushd %~dp0
setlocal

if exist .nuget\nuget.exe goto Prepare
echo Downloading Nuget.exe
call build.cmd DownloadNuGet >NUL

:Prepare
if exist bin\nuget goto Configure
md bin\nuget

:Configure
set config=%1
if not defined config set config=Debug

if exist bin\nuget\%config% goto Build
md bin\nuget\%config%

:Build
set params=-Prop Configuration=%config% -OutputDirectory bin\nuget\%config%

.nuget\NuGet pack src\Microsoft.Restier.Core\Microsoft.Restier.Core.csproj %params%
.nuget\NuGet pack src\Microsoft.Restier.Security\Microsoft.Restier.Security.csproj %params%
.nuget\NuGet pack src\Microsoft.Restier.EntityFramework\Microsoft.Restier.EntityFramework.csproj %params%
.nuget\NuGet pack src\Microsoft.Restier.WebApi\Microsoft.Restier.WebApi.csproj %params%
.nuget\NuGet pack src\Microsoft.Restier\Microsoft.Restier.nuspec %params%

popd
endlocal
3 changes: 3 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ REM is not supported. Also handle x86 operating systems, where %ProgramFiles(x86
REM %MSBuild% value when setting the variable and never quote %MSBuild% references.
set MSBuild="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe"
if not exist %MSBuild% @set MSBuild="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe"
REM Check for VS2015
if not exist %MSBuild% @set MSBuild="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe"
if not exist %MSBuild% @set MSBuild="%ProgramFiles%\MSBuild\14.0\Bin\MSBuild.exe"

if "%1" == "" goto BuildDefaults

Expand Down
2 changes: 1 addition & 1 deletion src/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0.0")]
[assembly: AssemblyInformationalVersion("0.3.0-beta2")]
[assembly: AssemblyInformationalVersion("0.3.0-beta3")]
[assembly: AssemblyMetadata("Serviceable", "True")]
9 changes: 4 additions & 5 deletions src/Microsoft.Restier/Microsoft.Restier.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>Microsoft.Restier</id>
<version>0.3.0-beta2</version>
<version>0.3.0-beta3</version>
<title>RESTier</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
Expand All @@ -11,10 +11,9 @@
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<copyright></copyright>
<dependencies>
<dependency id="Microsoft.Restier.Core" version="[0.3.0-beta2,]" />
<dependency id="Microsoft.Restier.Conventions" version="[0.3.0-beta2,]" />
<dependency id="Microsoft.Restier.EntityFramework" version="[0.3.0-beta2,]" />
<dependency id="Microsoft.Restier.WebApi" version="[0.3.0-beta2,]" />
<dependency id="Microsoft.Restier.Core" version="[0.3.0-beta3,]" />
<dependency id="Microsoft.Restier.EntityFramework" version="[0.3.0-beta3,]" />
<dependency id="Microsoft.Restier.WebApi" version="[0.3.0-beta3,]" />
</dependencies>
</metadata>
</package>

0 comments on commit 29b331e

Please sign in to comment.