Permalink
Browse files

Created Mvc3 project nuspec and updated build system to create nupkg

  • Loading branch information...
nikmd23 committed Sep 17, 2012
1 parent 5b7a2b0 commit 23584ccc28912c6fd38af0f067163b07c642b75f
Showing with 43 additions and 3 deletions.
  1. +1 −1 .gitignore
  2. +11 −2 default.ps1
  3. +6 −0 source/Glimpse.Mvc3/Glimpse.Mvc3.csproj
  4. +25 −0 source/Glimpse.Mvc3/NuSpec/Glimpse.Mvc3.nuspec
View
@@ -22,5 +22,5 @@ _ReSharper.*
/source/Glimpse.Mvc3.MusicStore.Sample/App_Data/ASPNETDB_log.ldf
/source/Glimpse.Mvc3.MusicStore.Sample/App_Data/MvcMusicStore.sdf
/Packages.dgml
-/source/Glimpse.Core2/NuSpec/
/packages
+/source/Glimpse.Mvc3/NuSpec/lib/
View
@@ -78,6 +78,9 @@ task merge -depends test {
" Glimpse.AspNet.Net35"
copy $source_dir\Glimpse.AspNet\bin\Release\Glimpse.AspNet.* $source_dir\Glimpse.AspNet\nuspec\lib\net35\
+ " Glimpse.Mvc3"
+ copy $source_dir\Glimpse.Mvc3\bin\Release\Glimpse.Mvc3.* $source_dir\Glimpse.Mvc3\nuspec\lib\net40\
+
}
task pack -depends merge {
@@ -93,11 +96,16 @@ task pack -depends merge {
$version = Get-AssemblyInformationalVersion $source_dir\Glimpse.AspNet\Properties\AssemblyInfo.cs | Update-AssemblyInformationalVersion
exec { & .\nuget.exe pack $source_dir\Glimpse.AspNet\NuSpec\Glimpse.AspNet.nuspec -OutputDirectory $build_dir\local -Symbols -Version $version }
+ " Glimpse.Mvc3.nuspec"
+ $version = Get-AssemblyInformationalVersion $source_dir\Glimpse.Mvc3\Properties\AssemblyInfo.cs | Update-AssemblyInformationalVersion
+ exec { & .\nuget.exe pack $source_dir\Glimpse.Mvc3\NuSpec\Glimpse.Mvc3.nuspec -OutputDirectory $build_dir\local -Symbols -Version $version }
+
" Glimpse.zip"
New-Item $build_dir\local\zip\Core\net40 -Type directory -Force > $null
New-Item $build_dir\local\zip\Core\net35 -Type directory -Force > $null
New-Item $build_dir\local\zip\AspNet\net40 -Type directory -Force > $null
New-Item $build_dir\local\zip\AspNet\net35 -Type directory -Force > $null
+ New-Item $build_dir\local\zip\MVC3\net40 -Type directory -Force > $null
copy $base_dir\license.txt $build_dir\local\zip
@@ -108,9 +116,10 @@ task pack -depends merge {
copy $source_dir\Glimpse.AspNet\nuspec\lib\net35\Glimpse.AspNet.* $build_dir\local\zip\AspNet\net35
copy $source_dir\Glimpse.AspNet\nuspec\readme.txt $build_dir\local\zip\AspNet
- #TODO: Add MVC
- #TODO: Add help .CHM file
+ copy $source_dir\Glimpse.Mvc3\nuspec\lib\net40\Glimpse.Mvc3.* $build_dir\local\zip\Mvc3\net40
+ #TODO: Add help .CHM file
+
Create-Zip $build_dir\local\zip $build_dir\local\Glimpse.zip
Delete-Directory $build_dir\local\zip
}
@@ -105,8 +105,14 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
+ <None Include="NuSpec\Glimpse.Mvc3.nuspec">
+ <SubType>Designer</SubType>
+ </None>
<None Include="packages.config" />
</ItemGroup>
+ <ItemGroup>
+ <Folder Include="NuSpec\lib\net40\" />
+ </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <!-- Values in dollar $igns are automatically pulled from the AssemblyInfo.cs attributes by psake build script -->
+ <metadata>
+ <id>Glimpse.Mvc3</id>
+ <version>0.0.0</version><!-- Replaced at build time by AssemblyInformationalVersion in AssemblyInfo.cs -->
+ <title>Glimpse Mvc3</title>
+ <authors>nmolnar, avanderhoorn</authors>
+ <owners>nmolnar, avanderhoorn</owners>
+ <licenseUrl>http://www.opensource.org/licenses/apache2.0</licenseUrl>
+ <projectUrl>http://getglimpse.com</projectUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <iconUrl>http://getglimpse.com/content/glimpse32.png</iconUrl>
+ <description>Glimpse is a web debugging and diagnostics tool used to gain a better understanding of whats happening inside of your ASP.NET MVC 3.0 application.</description>
+ <summary>ASP.NET MVC 3.0 web debugging and diagnostics tool.</summary>
+ <tags>ASP.NET Web MVC Glimpse</tags>
+ <dependencies>
+ <dependency id="Glimpse.AspNet" version="1.0.0-rc" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="lib\net40\*.*" target="lib\net40" />
+ <file src="..\**\*.*" target="src" exclude="..\bin\**;..\obj\**;..\NuSpec\**" />
+ </files>
+</package>

0 comments on commit 23584cc

Please sign in to comment.