Skip to content

Commit a0c8f96

Browse files
committed
Update NuGet package build script for dotnet pack
1 parent 620da68 commit a0c8f96

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

BuildPackages.bat

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
if not exist "./NuGet Packages" mkdir "./NuGet Packages"
2-
call ".nuget/NuGet.exe" pack NHibernate.Spatial.MsSql\NHibernate.Spatial.MsSql.csproj -Build -IncludeReferencedProjects -Properties Configuration=Release -OutputDirectory "./NuGet Packages"
3-
call ".nuget/NuGet.exe" pack NHibernate.Spatial.MySQL\NHibernate.Spatial.MySQL.csproj -Build -IncludeReferencedProjects -Properties Configuration=Release -OutputDirectory "./NuGet Packages"
4-
call ".nuget/NuGet.exe" pack NHibernate.Spatial.PostGis\NHibernate.Spatial.PostGis.csproj -Build -IncludeReferencedProjects -Properties Configuration=Release -OutputDirectory "./NuGet Packages"
5-
call ".nuget/NuGet.exe" pack NHibernate.Spatial.Oracle\NHibernate.Spatial.Oracle.csproj -Build -IncludeReferencedProjects -Properties Configuration=Release -OutputDirectory "./NuGet Packages"
1+
@echo off
2+
3+
REM Create output directory
4+
set solution_dir=%~dp0
5+
set output_dir="%solution_dir%\NuGet Packages"
6+
if not exist %output_dir% mkdir %output_dir%
7+
8+
REM Build NuGet packages
9+
set options=--configuration Release --output %output_dir%
10+
dotnet pack %options% NHibernate.Spatial
11+
dotnet pack %options% NHibernate.Spatial.MsSql
12+
dotnet pack %options% NHibernate.Spatial.MySQL
13+
REM dotnet pack %options% NHibernate.Spatial.Oracle
14+
dotnet pack %options% NHibernate.Spatial.PostGis

0 commit comments

Comments
 (0)