Permalink
Browse files

Updated build script to build Glimpse.WindowsAzure and Glimpse.Window…

…sAzure.Storage
  • Loading branch information...
1 parent 3326070 commit d8c8c1e8cf401935366706311845295b8824bd34 @maartenba maartenba committed Dec 24, 2013
@@ -14,6 +14,10 @@
<!-- Download NuGet.exe if it does not already exist -->
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
+
+ <!-- MSBuild Tasks assembly location -->
+ <MSBuildTasksAssembly Condition="Exists('$(MSBuildToolsPath)\Microsoft.Build.Tasks.v12.0.dll')">$(MSBuildToolsPath)\Microsoft.Build.Tasks.v12.0.dll</MSBuildTasksAssembly>
+ <MSBuildTasksAssembly Condition="Exists('$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll')">$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll</MSBuildTasksAssembly>
</PropertyGroup>
<ItemGroup Condition=" '$(PackageSources)' == '' ">
@@ -91,7 +95,7 @@
Condition=" '$(OS)' == 'Windows_NT' " />
</Target>
- <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildTasksAssembly)">
<ParameterGroup>
<OutputFilename ParameterType="System.String" Required="true" />
</ParameterGroup>
@@ -122,7 +126,7 @@
</Task>
</UsingTask>
- <UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildTasksAssembly)">
<ParameterGroup>
<EnvKey ParameterType="System.String" Required="true" />
<EnvValue ParameterType="System.String" Required="true" />
View
@@ -140,6 +140,14 @@ task clean {
" Glimpse.WebForms.Net35"
Delete-Directory "$source_dir\Glimpse.WebForms.Net35\bin"
Delete-Directory "$source_dir\Glimpse.WebForms.Net35\obj"
+
+ " Glimpse.WindowsAzure.Net40"
+ Delete-Directory "$source_dir\Glimpse.WindowsAzure.Net40\bin"
+ Delete-Directory "$source_dir\Glimpse.WindowsAzure.Net40\obj"
+
+ " Glimpse.WindowsAzure.Storage.Net40"
+ Delete-Directory "$source_dir\Glimpse.WindowsAzure.Storage.Net40\bin"
+ Delete-Directory "$source_dir\Glimpse.WindowsAzure.Storage.Net40\obj"
" Glimpse.Test.*"
Delete-Directory "$source_dir\Glimpse.Test.AspNet\bin"
@@ -237,6 +245,12 @@ task merge -depends test {
" Glimpse.WebForms.Net35"
copy $source_dir\Glimpse.WebForms.Net35\bin\Release\Glimpse.WebForms.* $source_dir\Glimpse.WebForms.Net45\nuspec\lib\net35\
+
+ " Glimpse.WindowsAzure.Net40"
+ copy $source_dir\Glimpse.WindowsAzure.Net40\bin\Release\Glimpse.WindowsAzure.* $source_dir\Glimpse.WindowsAzure.Net40\nuspec\lib\net40\
+
+ " Glimpse.WindowsAzure.Storage.Net40"
+ copy $source_dir\Glimpse.WindowsAzure.Storage.Net40\bin\Release\Glimpse.WindowsAzure.Storage.* $source_dir\Glimpse.WindowsAzure.Storage.Net40\nuspec\lib\net40\
}
task pack -depends merge {
@@ -287,7 +301,14 @@ task pack -depends merge {
" Glimpse.WebForms.nuspec"
$version = Get-AssemblyInformationalVersion $source_dir\Glimpse.WebForms.Net45\Properties\AssemblyInfo.cs | Update-AssemblyInformationalVersion
exec { & .\nuget.exe pack $source_dir\Glimpse.WebForms.Net45\NuSpec\Glimpse.WebForms.nuspec -OutputDirectory $build_dir\local -Symbols -Version $version }
-
+
+ " Glimpse.WindowsAzure.nuspec"
+ $version = Get-AssemblyInformationalVersion $source_dir\Glimpse.WindowsAzure.Net40\Properties\AssemblyInfo.cs | Update-AssemblyInformationalVersion
+ exec { & .\nuget.exe pack $source_dir\Glimpse.WindowsAzure.Net40\NuSpec\Glimpse.WindowsAzure.nuspec -OutputDirectory $build_dir\local -Symbols -Version $version }
+
+ " Glimpse.WindowsAzure.nuspec"
+ $version = Get-AssemblyInformationalVersion $source_dir\Glimpse.WindowsAzure.Storage.Net40\Properties\AssemblyInfo.cs | Update-AssemblyInformationalVersion
+ exec { & .\nuget.exe pack $source_dir\Glimpse.WindowsAzure.Storage.Net40\NuSpec\Glimpse.WindowsAzure.Storage.nuspec -OutputDirectory $build_dir\local -Symbols -Version $version }
" Glimpse.zip"
New-Item $build_dir\local\zip\Core\net45 -Type directory -Force > $null
@@ -311,6 +332,8 @@ task pack -depends merge {
New-Item $build_dir\local\zip\WebForms\net45 -Type directory -Force > $null
New-Item $build_dir\local\zip\WebForms\net40 -Type directory -Force > $null
New-Item $build_dir\local\zip\WebForms\net35 -Type directory -Force > $null
+ New-Item $build_dir\local\zip\WindowsAzure\net40 -Type directory -Force > $null
+ New-Item $build_dir\local\zip\WindowsAzure.Storage\net40 -Type directory -Force > $null
copy $base_dir\license.txt $build_dir\local\zip
@@ -342,6 +365,10 @@ task pack -depends merge {
copy $source_dir\Glimpse.WebForms.Net45\nuspec\lib\net40\Glimpse.WebForms.* $build_dir\local\zip\WebForms\net40
copy $source_dir\Glimpse.WebForms.Net45\nuspec\lib\net35\Glimpse.WebForms.* $build_dir\local\zip\WebForms\net35
copy $source_dir\Glimpse.WebForms.Net45\nuspec\readme.txt $build_dir\local\zip\WebForms
+
+ copy $source_dir\Glimpse.WindowsAzure.Net40\nuspec\lib\net40\Glimpse.WindowsAzure.* $build_dir\local\zip\WindowsAzure\net40
+
+ copy $source_dir\Glimpse.WindowsAzure.Storage.Net40\nuspec\lib\net40\Glimpse.WindowsAzure.* $build_dir\local\zip\WindowsAzure.Storage\net40
#TODO: Add help .CHM file
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<doc>
+ <assembly>
+ <name>Glimpse.WindowsAzure</name>
+ </assembly>
+ <members>
+ <member name="T:Glimpse.WindowsAzure.Resources">
+ <summary>
+ A strongly-typed resource class, for looking up localized strings, etc.
+ </summary>
+ </member>
+ <member name="P:Glimpse.WindowsAzure.Resources.ResourceManager">
+ <summary>
+ Returns the cached ResourceManager instance used by this class.
+ </summary>
+ </member>
+ <member name="P:Glimpse.WindowsAzure.Resources.Culture">
+ <summary>
+ Overrides the current thread's CurrentUICulture property for all
+ resource lookups using this strongly typed resource class.
+ </summary>
+ </member>
+ </members>
+</doc>
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<doc>
+ <assembly>
+ <name>Glimpse.WindowsAzure.Storage</name>
+ </assembly>
+ <members>
+ <member name="T:Glimpse.WindowsAzure.Storage.Resources">
+ <summary>
+ A strongly-typed resource class, for looking up localized strings, etc.
+ </summary>
+ </member>
+ <member name="P:Glimpse.WindowsAzure.Storage.Resources.ResourceManager">
+ <summary>
+ Returns the cached ResourceManager instance used by this class.
+ </summary>
+ </member>
+ <member name="P:Glimpse.WindowsAzure.Storage.Resources.Culture">
+ <summary>
+ Overrides the current thread's CurrentUICulture property for all
+ resource lookups using this strongly typed resource class.
+ </summary>
+ </member>
+ </members>
+</doc>

0 comments on commit d8c8c1e

Please sign in to comment.