Skip to content

Commit

Permalink
updates to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
calloncampbell committed Jul 27, 2015
1 parent 7383fbe commit b9d8ae8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
19 changes: 14 additions & 5 deletions Build.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
param(
[String] $majorMinor = "5.5", # 5.5
[String] $patch = "0", # $env:APPVEYOR_BUILD_VERSION
[String] $patch = "1", # $env:APPVEYOR_BUILD_VERSION
[String] $customLogger = "", # C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll
[Switch] $notouch,
[String] $project = "ReflectSoftware.Insight.Extensions.Log4Net"
Expand Down Expand Up @@ -39,14 +39,23 @@ function Invoke-NuGetPackProj($csproj)

function Invoke-NuGetPackSpec($nuspec, $version)
{
nuget pack $nuspec -Version $version -OutputDirectory ..\..\
md "..\Build\NuGet"
nuget pack $nuspec -Version $version -OutputDirectory ..\Build\NuGet
}

function Invoke-NuGetPack($version)
{
ls src/**/*.csproj |
#ls src/**/*.csproj |
# Where-Object { -not ($_.Name -like "*net40*") } |
# ForEach-Object { Invoke-NuGetPackProj $_ }

ls src/**/*.csproj |
Where-Object { -not ($_.Name -like "*net40*") } |
ForEach-Object { Invoke-NuGetPackProj $_ }

pushd .\src
Invoke-NuGetPackSpec "ReflectSoftware.Insight.Extensions.Log4net.nuspec" $version
popd
}

function Invoke-Build($project, $majorMinor, $patch, $customLogger, $notouch)
Expand All @@ -70,10 +79,10 @@ function Invoke-Build($project, $majorMinor, $patch, $customLogger, $notouch)
Install-NuGetPackages $solution45
Invoke-MSBuild $solution45 $customLogger

Install-NuGetPackages $solution4
Install-NuGetPackages $solution4
Invoke-MSBuild $solution4 $customLogger

Install-NuGetPackages $solution2
Install-NuGetPackages $solution2
Invoke-MSBuild $solution2 $customLogger

Invoke-NuGetPack $package
Expand Down
2 changes: 1 addition & 1 deletion assets/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyVersion("5.5.0.1500")]
[assembly: AssemblyFileVersion("5.5.0.1500")]
[assembly: AssemblyInformationalVersion("5.5.0")]
[assembly: AssemblyInformationalVersion("5.5.1")]
2 changes: 1 addition & 1 deletion src/ReflectSoftware.Insight.Extensions.Log4net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>ReflectSoftware.Insight.Extensions.Log4net</id>
<version>5.5.0</version>
<version>5.5.1</version>
<title>ReflectSoftware.Insight.Extensions.Log4net</title>
<authors>ReflectSoftware Inc.</authors>
<owners>ReflectSoftware Inc.</owners>
Expand Down
3 changes: 3 additions & 0 deletions src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ VERSION 5.4

RELEASE NOTES

Version 5.5.1
- Added auto save log file by file size

Version 5.4.0
- Added auto save log file by file size
- Added support for overloading ConfigurationMode to avoid a local configuration file
Expand Down

0 comments on commit b9d8ae8

Please sign in to comment.