Skip to content
Browse files

add msbuild file and move nuspec

  • Loading branch information...
1 parent d1e7113 commit 144f61228ae3a1d449c9f28989b417ab1309ad03 @nberardi nberardi committed
View
82 FluentCassandra.msbuild
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
+ <UsingTask TaskName="NUnitTeamCity" AssemblyFile="$(teamcity_dotnet_nunitlauncher_msbuild_task)" />
+ <UsingTask AssemblyFile="$(MSBuildExtensionsPath)\NuGet\NuGet.MSBuild.dll" TaskName="NuGet.MSBuild.NuGet" />
+
+ <ItemGroup>
+ <MainProjects Include="src\**\*.csproj" />
+ <TestProjects Include="test\**\*.csproj" />
+ <AllProjects Include="@(MainProjects);@(TestProjects)" />
+ </ItemGroup>
+
+ <PropertyGroup>
+ <AssemblyName>FluentCassandra</AssemblyName>
+ <AssemblyNetVersion>net40</AssemblyNetVersion>
+ <AssemblyInfo>src\Properties\AssemblyInfo.cs</AssemblyInfo>
+ <PackagePath>nuget</PackagePath>
+ <PackageSpec>$(PackagePath)\$(AssemblyName).nuspec</PackageSpec>
+ <PackageBuildPath>build</PackageBuildPath>
+ <PackageId>$(AssemblyName)</PackageId>
+ <NuGetExe>lib\nuget.exe</NuGetExe>
+ <NuPackage>$(PackageBuildPath)\$(PackageId).$(build_number).nupkg</NuPackage>
+ </PropertyGroup>
+
+ <Target Name="CleanPackage">
+ <RemoveDir Directories="$(PackageBuildPath)" Condition="Exists($(PackageBuildPath))"/>
+ </Target>
+
+ <Target Name="Clean" DependsOnTargets="CleanPackage">
+ <TeamCityProgressMessage Text="Cleaning Projects" />
+ <MSBuild Projects="@(AllProjects)" Targets="Clean"/>
+ </Target>
+
+ <Target Name="SetVersion" DependsOnTargets="Clean">
+ <TeamCityProgressMessage Text="Update Version" />
+ <FileUpdate
+ Files="$(AssemblyInfo)"
+ Regex='\[assembly: (Assembly(File)?Version)\("([0-9\.\*]+)"\)\]'
+ ReplacementText='[assembly: $1("$(build_number)")]' />
+
+ <XmlUpdate
+ XmlFileName="$(PackageSpec)"
+ XPath="/package/metadata/version"
+ Value="$(build_number)"/>
+ </Target>
+
+ <Target Name="Test" DependsOnTargets="SetVersion">
+ <TeamCityProgressMessage Text="Building Tests" />
+ <MSBuild Projects="@(TestProjects)" Targets="Rebuild" Properties="Configuration=Release">
+ <Output TaskParameter="TargetOutputs" ItemName="TestOutput"/>
+ </MSBuild>
+
+ <TeamCityProgressMessage Text="Running Tests" />
+ <NUnitTeamCity Assemblies="@(TestOutput)" NUnitVersion="NUnit-2.5.9" />
+ </Target>
+
+ <Target Name="Build" DependsOnTargets="SetVersion">
+ <TeamCityProgressMessage Text="Building Projects" />
+ <MSBuild Projects="@(MainProjects)" Targets="Rebuild" Properties="Configuration=Release" />
+ </Target>
+
+ <Target Name="Package" DependsOnTargets="Build">
+ <TeamCityProgressMessage Text="Packaging NuGet" />
+
+ <ItemGroup>
+ <AssembliesToPackage Include="src\bin\**\$(AssemblyName).dll" />
+ </ItemGroup>
+
+ <RemoveDir Directories="$(PackagePath)\lib" />
+ <Copy SourceFiles="@(AssembliesToPackage)" DestinationFolder="$(PackagePath)\lib\$(AssemblyNetVersion)\" />
+ <Copy SourceFiles="@(AssembliesToPackage)" DestinationFolder="$(PackageBuildPath)" />
+
+ <Exec Command="$(NuGetExe) update" />
+ <Exec Command="$(NuGetExe) pack $(PackageSpec) -o $(PackageBuildPath)" />
+ </Target>
+
+ <Target Name="Deploy" DependsOnTargets="Package">
+ <TeamCityProgressMessage Text="Deploying NuGet" />
+
+ <Exec Command="$(NuGetExe) push $(NuPackage) $(package_key)" />
+ </Target>
+</Project>
View
17 FluentCassandra.nuspec
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<package>
- <metadata>
- <id>FluentCassandra</id>
- <version>0.7.0</version>
- <authors>
- <author>Managed Fusion, LLC</author>
- <author>Nick Berardi</author>
- </authors>
- <description>FluentCassandra is a .NET library for accessing Cassandra, which wraps the Thrift client library and provides a more fluent POCO interface for accessing and querying the objects in Cassandra.</description>
- <language>en-US</language>
- <keywords>Fluent Cassandra Apache NoSQL Database</keywords>
- <category>Database</category>
- <created>2010-04-10T00:00:00Z</created>
- <modified>2010-10-14T12:00:00Z</modified>
- </metadata>
-</package>
View
6 FluentCassandra.sln
@@ -7,6 +7,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FluentCassandra.Sandbox", "
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FluentCassandra.Tests", "test\FluentCassandra.Tests\FluentCassandra.Tests.csproj", "{9DAF7022-5820-4214-B13E-AC0A1B37691F}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{53AE6E93-92B4-4D33-9BE5-3CE59C1A2AD6}"
+ ProjectSection(SolutionItems) = preProject
+ FluentCassandra.msbuild = FluentCassandra.msbuild
+ nuget\FluentCassandra.nuspec = nuget\FluentCassandra.nuspec
+ EndProjectSection
+EndProject
Global
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = FluentCassandra.vsmdi
View
BIN nuget/FluentCassandra.Logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
18 nuget/FluentCassandra.nuspec
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package>
+ <metadata>
+ <id>FluentCassandra</id>
+ <version>1.0.0</version>
+ <title>Fluent Cassandra</title>
+ <authors>Nick Berardi</authors>
+ <owners>nberardi</owners>
+ <description>FluentCassandra is a .NET library for accessing Cassandra, which wraps the Thrift client library and provides a more fluent POCO interface for accessing and querying the objects in Cassandra.</description>
+ <summary>FluentCassandra is a .NET library for accessing Cassandra, which wraps the Thrift client library and provides a more fluent POCO interface for accessing and querying the objects in Cassandra.</summary>
+ <language>en-US</language>
+ <projectUrl>https://github.com/managedfusion/fluentcassandra</projectUrl>
+ <licenseUrl>https://github.com/managedfusion/fluentcassandra/raw/master/LICENSE.txt</licenseUrl>
+ <iconUrl>https://github.com/managedfusion/fluentcassandra/raw/master/nuget/FluentCassandra.Logo.png</iconUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <tags>fluent cassandra apache nosql database managedfusion .net40</tags>
+ </metadata>
+</package>

0 comments on commit 144f612

Please sign in to comment.
Something went wrong with that request. Please try again.