Skip to content

Commit

Permalink
NuGet version updated with github patches and NuSpec auto generate ad…
Browse files Browse the repository at this point in the history
…ded on release build.
  • Loading branch information
TylerBrinks committed Jan 24, 2014
1 parent b07c12f commit 9bd457b
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ build/
[Bb]in/
[Oo]bj/

NuSpec/*.nupkg

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/

Expand Down Expand Up @@ -154,7 +156,4 @@ $RECYCLE.BIN/

# Mac desktop service store files
.DS_Store
/CMA.Web/App_Data/aspnet-CMA.Web-20131118121641.mdf
/CMA.Web/App_Data/aspnet-CMA.Web-20131118121641_log.ldf
/CMA.Web.old
/packages
Binary file removed ExCSS.2.0.1.nupkg
Binary file not shown.
27 changes: 22 additions & 5 deletions ExCSS/ExCSS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="Antlr3.Runtime">
<HintPath>..\Antlr\Antlr3.Runtime.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
Expand Down Expand Up @@ -168,18 +165,38 @@
<ItemGroup>
<None Include="ExCSS.snk" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- 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">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

<Target Name="AfterBuild" Condition="'$(Configuration)' == 'Release'">
<GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
<Output TaskParameter="Assemblies" ItemName="ExCSSAssemblyInfo" />
</GetAssemblyIdentity>

<PropertyGroup>
<ExCSSAssemblyVersion>%(ExCSSAssemblyInfo.Version)</ExCSSAssemblyVersion>
</PropertyGroup>

<PropertyGroup>
<ExCSSSemVer>$(ExCSSAssemblyVersion.SubString(0, $(ExCSSAssemblyVersion.LastIndexOf('.'))))</ExCSSSemVer>
</PropertyGroup>

<Exec Command="$(SolutionDir).nuget\nuget pack $(SolutionDir)\NuSpec\ExCSS.nuspec -Version $(ExCSSSemVer) -o $(SolutionDir)\NuSpec" />
<Message Text="$(SolutionDir).nuget\nuget pack $(SolutionDir)\NuSpec\ExCSS.nuspec -Version $(ExCSSSemVer)" Importance="high" />
</Target>
</Project>
4 changes: 2 additions & 2 deletions ExCSS/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("2.0.2")]
[assembly: AssemblyFileVersion("2.0.2")]
22 changes: 22 additions & 0 deletions NuSpec/ExCSS.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>ExCSS</id>
<version>$version$</version>
<title>ExCSS Stylesheet Parser</title>
<authors>Tyler Brinks</authors>
<owners>Tyler Brinks</owners>
<projectUrl>https://github.com/TylerBrinks/ExCSS</projectUrl>
<iconUrl>https://github.com/TylerBrinks/ExCSS/raw/master/ExCSS.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>ExCSS reads and parses stylesheets using CSS 3 and CSS 2 selector specifications, and is easily queryable from LINQ using its simple and readable object model.</description>
<summary>Parse CSS 3 and CSS 2 stylesheets into an easily usable and LINQ-friendly object model. It's #BADA55!</summary>
<language>en-US</language>
<tags>ExCSS, CSS, Style, Stylesheet, Parse, Lexer, Scanner, Linq</tags>
</metadata>
<files>
<file src="..\ExCSS\bin\Release\ExCSS.dll" target="lib\net40\ExCSS.dll" />
<file src="..\ExCSS\bin\Release\ExCSS.dll" target="lib\net45\ExCSS.dll" />
<file src="..\ExCSS\bin\Release\ExCSS.dll" target="lib\net451\ExCSS.dll" />
</files>
</package>

0 comments on commit 9bd457b

Please sign in to comment.