Skip to content

Commit

Permalink
Build NuGet packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Oct 7, 2012
1 parent 4e1e79f commit 74c71e3
Show file tree
Hide file tree
Showing 17 changed files with 175 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Brandy.build
Expand Up @@ -22,15 +22,15 @@
</Target>

<Target Name="Build">
<MSBuild Projects="$(solution)" Targets="Build" Properties="Configuration=$(Configuration)"/>
<MSBuild Projects="$(solution)" Targets="Build" Properties="Configuration=$(Configuration);BuildPackage=true;PackageOutputDir=$(artifactPath)"/>
</Target>

<Target Name="Deploy">
<ItemGroup>
<ProjectFiles Include="Core; NHibernate; Web; Security; Security.NHibernate; Security.Web; Security.Windsor" />
</ItemGroup>
<ItemGroup>
<ZipFiles Include="$(MSBuildProjectDirectory)\src\%(ProjectFiles.Identity)\bin\$(Configuration)\Brandy.%(ProjectFiles.Identity).*" />
<ZipFiles Include="$(MSBuildProjectDirectory)\src\%(ProjectFiles.Identity)\bin\$(Configuration)\Brandy.%(ProjectFiles.Identity).*" Exclude="*.nupkg"/>
</ItemGroup>
<Zip Files="@(ZipFiles)" ZipFileName="$(artifactPath)\Brandy.zip" Flatten="true" ZipLevel="9"/>
</Target>
Expand Down
1 change: 0 additions & 1 deletion packages/repositories.config
Expand Up @@ -4,5 +4,4 @@
<repository path="..\src\Security.NHibernate\packages.config" />
<repository path="..\src\Security.Web\packages.config" />
<repository path="..\src\Security.Windsor\packages.config" />
<repository path="..\src\Web\packages.config" />
</repositories>
6 changes: 6 additions & 0 deletions src/Core/Brandy.Core.csproj
Expand Up @@ -12,6 +12,8 @@
<AssemblyName>Brandy.Core</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -55,7 +57,11 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="QueryFor.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Brandy.Core.nuspec" />
</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.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
18 changes: 18 additions & 0 deletions src/Core/Brandy.Core.nuspec
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<!--<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>-->
<projectUrl>https://github.com/BrandyFx/Brandy</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/3bd71f08e27e6b09bd4bfb0017c0497a?s=420</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes></releaseNotes>
<copyright>Copyright BrandyFx 2012</copyright>
<tags></tags>
</metadata>
</package>
1 change: 1 addition & 0 deletions src/NHibernate/Brandy.NHibernate.csproj
Expand Up @@ -76,6 +76,7 @@
<Compile Include="DefaultSessionProvider.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Brandy.NHibernate.nuspec" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
Expand Down
21 changes: 21 additions & 0 deletions src/NHibernate/Brandy.NHibernate.nuspec
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<!--<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>-->
<projectUrl>https://github.com/BrandyFx/Brandy</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/3bd71f08e27e6b09bd4bfb0017c0497a?s=420</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes></releaseNotes>
<copyright>Copyright BrandyFx 2012</copyright>
<tags></tags>
<dependencies>
<dependency id="Brandy.Core" version="$version$" />
</dependencies>
</metadata>
</package>
1 change: 1 addition & 0 deletions src/Security.NHibernate/Brandy.Security.NHibernate.csproj
Expand Up @@ -76,6 +76,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Brandy.Security.NHibernate.nuspec" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
23 changes: 23 additions & 0 deletions src/Security.NHibernate/Brandy.Security.NHibernate.nuspec
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<!--<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>-->
<projectUrl>https://github.com/BrandyFx/Brandy</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/3bd71f08e27e6b09bd4bfb0017c0497a?s=420</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes></releaseNotes>
<copyright>Copyright BrandyFx 2012</copyright>
<tags></tags>
<dependencies>
<dependency id="Brandy.Core" version="$version$" />
<dependency id="Brandy.NHibernate" version="$version$" />
<dependency id="Brandy.Security" version="$version$" />
</dependencies>
</metadata>
</package>
12 changes: 1 addition & 11 deletions src/Security.Web/Brandy.Security.Web.csproj
Expand Up @@ -41,10 +41,7 @@
<Reference Include="System.Web" />
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -81,14 +78,6 @@
<Project>{EC166CCA-E2DE-49E0-9CCC-EBE6AAE548A7}</Project>
<Name>Brandy.Core</Name>
</ProjectReference>
<ProjectReference Include="..\NHibernate\Brandy.NHibernate.csproj">
<Project>{309CA85F-743C-4ECF-B21D-7C497556EE9E}</Project>
<Name>Brandy.NHibernate</Name>
</ProjectReference>
<ProjectReference Include="..\Security.NHibernate\Brandy.Security.NHibernate.csproj">
<Project>{83665861-E89B-4024-AD41-CC196D95128D}</Project>
<Name>Brandy.Security.NHibernate</Name>
</ProjectReference>
<ProjectReference Include="..\Security\Brandy.Security.csproj">
<Project>{AF736CA9-1DE4-41AF-95EE-91893814A4BC}</Project>
<Name>Brandy.Security</Name>
Expand All @@ -105,6 +94,7 @@
<EmbeddedResource Include="Views\Account\SignIn.cshtml" />
</ItemGroup>
<ItemGroup>
<None Include="Brandy.Security.Web.nuspec" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
23 changes: 23 additions & 0 deletions src/Security.Web/Brandy.Security.Web.nuspec
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<!--<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>-->
<projectUrl>https://github.com/BrandyFx/Brandy</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/3bd71f08e27e6b09bd4bfb0017c0497a?s=420</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes></releaseNotes>
<copyright>Copyright BrandyFx 2012</copyright>
<tags></tags>
<dependencies>
<dependency id="Brandy.Core" version="$version$" />
<dependency id="Brandy.Security" version="$version$" />
<dependency id="Brandy.Web" version="$version$" />
</dependencies>
</metadata>
</package>
1 change: 1 addition & 0 deletions src/Security.Windsor/Brandy.Security.Windsor.csproj
Expand Up @@ -71,6 +71,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Brandy.Security.Windsor.nuspec" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
25 changes: 25 additions & 0 deletions src/Security.Windsor/Brandy.Security.Windsor.nuspec
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<!--<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>-->
<projectUrl>https://github.com/BrandyFx/Brandy</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/3bd71f08e27e6b09bd4bfb0017c0497a?s=420</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes></releaseNotes>
<copyright>Copyright BrandyFx 2012</copyright>
<tags></tags>
<dependencies>
<dependency id="Brandy.Core" version="$version$" />
<dependency id="Brandy.NHibernate" version="$version$" />
<dependency id="Brandy.Security" version="$version$" />
<dependency id="Brandy.Security.NHibernate" version="$version$" />
<dependency id="Brandy.Web" version="$version$" />
</dependencies>
</metadata>
</package>
6 changes: 6 additions & 0 deletions src/Security/Brandy.Security.csproj
Expand Up @@ -12,6 +12,8 @@
<AssemblyName>Brandy.Security</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -56,7 +58,11 @@
<Name>Brandy.Core</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Brandy.Security.nuspec" />
</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.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
21 changes: 21 additions & 0 deletions src/Security/Brandy.Security.nuspec
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<!--<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>-->
<projectUrl>https://github.com/BrandyFx/Brandy</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/3bd71f08e27e6b09bd4bfb0017c0497a?s=420</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes></releaseNotes>
<copyright>Copyright BrandyFx 2012</copyright>
<tags></tags>
<dependencies>
<dependency id="Brandy.Core" version="$version$" />
</dependencies>
</metadata>
</package>
6 changes: 5 additions & 1 deletion src/Web/Brandy.Web.csproj
Expand Up @@ -12,6 +12,8 @@
<AssemblyName>Brandy.Web</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -31,6 +33,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
Expand All @@ -50,7 +53,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Brandy.Web.nuspec" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Core\Brandy.Core.csproj">
Expand All @@ -59,6 +62,7 @@
</ProjectReference>
</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.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
21 changes: 21 additions & 0 deletions src/Web/Brandy.Web.nuspec
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<!--<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>-->
<projectUrl>https://github.com/BrandyFx/Brandy</projectUrl>
<iconUrl>https://secure.gravatar.com/avatar/3bd71f08e27e6b09bd4bfb0017c0497a?s=420</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes></releaseNotes>
<copyright>Copyright BrandyFx 2012</copyright>
<tags></tags>
<dependencies>
<dependency id="Brandy.Core" version="$version$" />
</dependencies>
</metadata>
</package>
3 changes: 0 additions & 3 deletions src/Web/packages.config

This file was deleted.

0 comments on commit 74c71e3

Please sign in to comment.