Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added NuGetPack for: StackExpress, StackExpress.Mvc, StackExpress.Com…

…mon, StackExpress.Razor, StackExpress.Authentication, StackExpress.MsgPack and StackExpress.ProtoBuf
  • Loading branch information...
commit 95f6c640162eaaf178d2e4ec018e7177517b8181 1 parent beaed5d
@desunit desunit authored
View
32 NuGet/ServiceStack.Authentication.OpenId/stackexpress.authentication.openid.nuspec
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>StackExpress.Authentication.OpenId</id>
+ <title>OpenId Auth Providers for StackExpress - inc. Google, Yahoo, MyOpenId</title>
+ <version>$version$</version>
+ <authors>Demis Bellot</authors>
+ <owners>Demis Bellot</owners>
+ <summary>OpenId Auth Providers for StackExpress - inc. Google, Yahoo, MyOpenId</summary>
+ <description>
+ Adds OpenId Auth Providers for use in StackExpress Web and REST Services.
+ Includes built-in support for Google, Yahoo, MyOpenId and Custom OpenId providers.
+
+ More Info on Auth Providers:
+ https://github.com/ServiceStack/ServiceStack/wiki/Authentication-and-authorization
+ </description>
+ <projectUrl>https://github.com/ServiceStack/ServiceStack</projectUrl>
+ <licenseUrl>https://github.com/ServiceStack/ServiceStack/blob/master/LICENSE</licenseUrl>
+ <iconUrl>http://www.servicestack.net/logo-100x100.png</iconUrl>
+ <tags>OpenId Google Yahoo MyOpenId Authentication Auth Provider ServiceStack REST Web Services</tags>
+ <language>en-US</language>
+ <copyright>StackExpress.net 2012 and contributors</copyright>
+ <dependencies>
+ <dependency id="StackExpress" />
+ <dependency id="DotNetOpenAuth.Ultimate" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="lib\**\*.*" target="lib" />
+ <file src="..\..\src\ServiceStack.Authentication.OpenId\**\*.cs" target="src" />
+ </files>
+</package>
View
24 NuGet/ServiceStack.Client.Silverlight/stackexpress.client.silverlight.nuspec
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>StackExpress.Client.Silverlight</id>
+ <version>$version$</version>
+ <title>Silverlight Clients for StackExpress webservices</title>
+ <authors>Demis Bellot</authors>
+ <owners>Demis Bellot</owners>
+ <summary>Silverlight JSON, XML, JSV ServiceClients for StackExpress web services</summary>
+ <description>
+ StackExpress client binaries for Silverlight. Provides generic JSON, XML and JSV Service Clients allowing you to call ServiceStack web services from a Silverlight client.
+ This is now a stub that points to ServiceStack.Common NuGet package which now contains the Silverlight client builds.
+ </description>
+ <projectUrl>https://github.com/ServiceStack/ServiceStack</projectUrl>
+ <licenseUrl>https://github.com/ServiceStack/ServiceStack/blob/master/LICENSE</licenseUrl>
+ <iconUrl>http://www.servicestack.net/logo-100x100.png</iconUrl>
+ <tags>Silverlight Fast JSON XML JSV REST Web Services</tags>
+ <language>en-US</language>
+ <copyright>StackExpress.net 2012 and contributors</copyright>
+ <dependencies>
+ <dependency id="StackExpress.Common" />
+ </dependencies>
+ </metadata>
+</package>
View
34 NuGet/ServiceStack.Common/stackexpress.common.nuspec
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>StackExpress.Common</id>
+ <title>Service Clients and Common libs for StackExpress projects</title>
+ <version>$version$</version>
+ <authors>Demis Bellot</authors>
+ <owners>Demis Bellot</owners>
+ <summary>Opensource .NET and Mono REST Web Services framework</summary>
+ <description>
+ Common library dependency for other StackExpress projects.
+ Includes JSON, XML, JSV and SOAP Generic Service Clients.
+ Contains:
+ - StackExpress.Interfaces
+ - StackExpress.Common
+ Dependenies:
+ - StackExpress.Text
+ </description>
+ <projectUrl>https://github.com/ServiceStack/ServiceStack</projectUrl>
+ <licenseUrl>https://github.com/ServiceStack/ServiceStack/blob/master/LICENSE</licenseUrl>
+ <iconUrl>http://www.StackExpress.net/logo-100x100.png</iconUrl>
+ <tags>StackExpress Common Framework</tags>
+ <language>en-US</language>
+ <copyright>StackExpress.net 2012 and contributors</copyright>
+ <dependencies>
+ <dependency id="StackExpress.Text" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="lib\**\*.*" target="lib" />
+ <file src="..\..\src\ServiceStack.Common\**\*.cs" target="src\ServiceStack.Common" />
+ <file src="..\..\src\ServiceStack.Interfaces\**\*.cs" target="src\ServiceStack.Interfaces" />
+ </files>
+</package>
View
25 NuGet/ServiceStack.Host.AspNet/stackexpress.host.aspnet.nuspec
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>StackExpress.Host.AspNet</id>
+ <title>Starter ASP.NET Website Template - StackExpress at /</title>
+ <version>$version$</version>
+ <authors>Demis Bellot</authors>
+ <owners>Demis Bellot</owners>
+ <summary>Opensource .NET and Mono REST Web Services framework</summary>
+ <description>
+Host StackExpress in an existing ASP.NET web application at the root path '/'.
+StackExpress is a modern, high-performance, code-first web service framework promoting code and web services best practices. Simple, Fast, Elegant. Website: http://www.servicestack.net
+ </description>
+ <projectUrl>https://github.com/ServiceStack/ServiceStack</projectUrl>
+ <licenseUrl>https://github.com/ServiceStack/ServiceStack/blob/master/LICENSE</licenseUrl>
+ <iconUrl>http://www.servicestack.net/logo-100x100.png</iconUrl>
+ <tags>Fast JSON XML CSV HTML SOAP JSV REST Web Service Framework MONO</tags>
+ <language>en-US</language>
+ <copyright>StackExpress.net 2012 and contributors</copyright>
+ <dependencies>
+ <dependency id="WebActivator" version="1.5" />
+ <dependency id="StackExpress" />
+ </dependencies>
+ </metadata>
+</package>
View
25 NuGet/ServiceStack.Host.Mvc/stackexpress.host.mvc.nuspec
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>StackExpress.Host.Mvc</id>
+ <title>Starter ASP.NET MVC Website Template - StackExpress at /api</title>
+ <version>$version$</version>
+ <authors>Demis Bellot</authors>
+ <owners>Demis Bellot</owners>
+ <summary>Opensource .NET and Mono REST Web Services framework</summary>
+ <description>
+Host StackExpress side-by-side with an existing ASP.NET MVC application at the path '/api'.
+StackExpress is a modern, high-performance, code-first web service framework promoting code and web services best practices. Simple, Fast, Elegant. Website: http://www.servicestack.net
+ </description>
+ <projectUrl>https://github.com/ServiceStack/ServiceStack</projectUrl>
+ <licenseUrl>https://github.com/ServiceStack/ServiceStack/blob/master/LICENSE</licenseUrl>
+ <iconUrl>http://www.servicestack.net/logo-100x100.png</iconUrl>
+ <tags>Fast JSON XML CSV HTML SOAP JSV REST Web Service Framework MONO</tags>
+ <language>en-US</language>
+ <copyright>StackExpress.net 2012 and contributors</copyright>
+ <dependencies>
+ <dependency id="WebActivator" version="1.5" />
+ <dependency id="StackExpress.Mvc" />
+ </dependencies>
+ </metadata>
+</package>
View
30 NuGet/ServiceStack.Mvc/stackexpress.mvc.nuspec
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>StackExpress.Mvc</id>
+ <title>MVC Adapters for integrating with StackExpress webservices</title>
+ <version>$version$</version>
+ <authors>Demis Bellot</authors>
+ <owners>Demis Bellot</owners>
+ <summary>.NET 4.0 project Integration of StackExpress with MVC3</summary>
+ <description>
+ Full details in Mvc PowerPack: http://servicestack.net/mvc-powerpack/
+ Adapter classes to provide tight integration and re-usable functionality between ServiceStack and MVC3.
+ Including adapters for: MiniProfiler, FluentValidation, Funq IOC Controller Factory, Funq Validator Factory
+ ControllerBase (configured with access to ServiceStack's ICacheClient, ISession, typed UserSession dependencies).
+ </description>
+ <projectUrl>https://github.com/ServiceStack/ServiceStack</projectUrl>
+ <licenseUrl>https://github.com/ServiceStack/ServiceStack/blob/master/LICENSE</licenseUrl>
+ <iconUrl>http://www.servicestack.net/logo-100x100.png</iconUrl>
+ <tags>MiniProfiler FluentValidation MVC Controller</tags>
+ <language>en-US</language>
+ <copyright>StackExpress.net 2012 and contributors</copyright>
+ <dependencies>
+ <dependency id="StackExpress" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="lib\**\*.*" target="lib" />
+ <file src="..\..\src\ServiceStack.FluentValidation.Mvc3\**\*.cs" target="src" />
+ </files>
+</package>
View
27 NuGet/ServiceStack.Plugins.MsgPack/stackexpress.plugins.msgpack.nuspec
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>StackExpress.Plugins.MsgPack</id>
+ <title>Message Pack support for StackExpress. Includes typed MsgPack Client</title>
+ <version>$version$</version>
+ <authors>Demis Bellot</authors>
+ <owners>Demis Bellot</owners>
+ <summary>MsgPack Format Serializer ContentType ServiceClients for StackExpress</summary>
+ <description>
+ Add the MsgPack binary format and endpoint to a StackExpress web service host.
+ </description>
+ <projectUrl>https://github.com/ServiceStack/ServiceStack</projectUrl>
+ <licenseUrl>https://github.com/ServiceStack/ServiceStack/blob/master/LICENSE</licenseUrl>
+ <iconUrl>http://www.servicestack.net/logo-100x100.png</iconUrl>
+ <tags>MsgPack MessagePack Message Pack Fast Binary Serializer Format ContentType StackExpress REST Web Services</tags>
+ <language>en-US</language>
+ <copyright>StackExpress.net 2012 and contributors</copyright>
+ <dependencies>
+ <dependency id="StackExpress.Common" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="lib\**\*.*" target="lib" />
+ <file src="..\..\src\ServiceStack.Plugins.MsgPack\**\*.cs" target="src" />
+ </files>
+</package>
View
28 NuGet/ServiceStack.Plugins.ProtoBuf/stackexpress.plugins.protobuf.nuspec
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>StackExpress.Plugins.ProtoBuf</id>
+ <title>Protocol Buffers support for StackExpress. Includes typed ProtoBuf Client</title>
+ <version>$version$</version>
+ <authors>Demis Bellot</authors>
+ <owners>Demis Bellot</owners>
+ <summary>ProtoBuf Format Serializer ContentType ServiceClients for StackExpress</summary>
+ <description>
+ Add the ProtoBuf binary format and endpoint to a StackExpress web service host.
+ </description>
+ <projectUrl>https://github.com/ServiceStack/ServiceStack</projectUrl>
+ <licenseUrl>https://github.com/ServiceStack/ServiceStack/blob/master/LICENSE</licenseUrl>
+ <iconUrl>http://www.servicestack.net/logo-100x100.png</iconUrl>
+ <tags>ProtoBuf Fast Binary Serializer Format ContentType StackExpress REST Web Services</tags>
+ <language>en-US</language>
+ <copyright>StackExpress.net 2012 and contributors</copyright>
+ <dependencies>
+ <dependency id="protobuf-net" />
+ <dependency id="StackExpress.Common" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="lib\**\*.*" target="lib" />
+ <file src="..\..\src\ServiceStack.Plugins.ProtoBuf\**\*.cs" target="src" />
+ </files>
+</package>
View
38 NuGet/ServiceStack.Razor/stackexpress.razor.nuspec
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>StackExpress.Razor</id>
+ <title>StackExpress.Razor - StackExpress's HTML story including MVC Razor</title>
+ <version>$version$</version>
+ <authors>Demis Bellot</authors>
+ <owners>Demis Bellot</owners>
+ <summary>Provides ServiceStack's HTML Story including integrated support for MVC Razor's ViewEngine</summary>
+ <description>
+ StackExpress Razor Documentation: http://razor.servicestack.net
+
+ - Turns ServiceStack into a Complete Web + REST Services Stack. Replaces need for ASP.NET MVC.
+ - Runs In ASP.NET or Self-host, first-class cross-platform support on .NET / Mono runtimes.
+ - Add HTML views to existing services.
+ - Change Views and Layout templates at runtime.
+ - No Ceremony development options - Pages without controllers, with typed and dynamic View Models.
+ - Include Partial Markdown views in Razor pages.
+ - Cascading Layout templates.
+ - Pretty urls by default (no custom Routes needed).
+ - Keep all views and assets together.
+ - Smart View Pages.
+ </description>
+ <projectUrl>http://razor.servicestack.net</projectUrl>
+ <licenseUrl>https://github.com/ServiceStack/ServiceStack/blob/master/LICENSE</licenseUrl>
+ <iconUrl>http://www.servicestack.net/logo-100x100.png</iconUrl>
+ <tags>ServiceStack Razor ViewEngine View Templates Controllers Mono ASP.NET Self-Host</tags>
+ <language>en-US</language>
+ <copyright>StackExpress.net 2012 and contributors</copyright>
+ <dependencies>
+ <dependency id="StackExpress" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="lib\**\*.*" target="lib" />
+ <file src="..\..\src\ServiceStack.Razor\**\*.cs" target="src" />
+ </files>
+</package>
View
33 NuGet/ServiceStack/stackexpress.nuspec
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>StackExpress</id>
+ <title>StackExpress webservice framework: Faster, Cleaner, Modern WCF alternative</title>
+ <version>$version$</version>
+ <authors>Demis Bellot</authors>
+ <owners>Demis Bellot</owners>
+ <summary>Opensource .NET and Mono REST Web Services framework</summary>
+ <description>
+ Binaries for the StackExpress web framework.
+ Visit http://www.ServiceStack.net/ServiceStack.Hello/
+ and https://github.com/ServiceStack/ServiceStack/wiki/Create-your-first-webservice
+ for walk throughs and docs on creating your first web service.
+ </description>
+ <projectUrl>https://github.com/ServiceStack/ServiceStack</projectUrl>
+ <licenseUrl>https://github.com/ServiceStack/ServiceStack/blob/master/LICENSE</licenseUrl>
+ <iconUrl>http://www.StackExpress.net/logo-100x100.png</iconUrl>
+ <tags>Fast JSON XML CSV HTML SOAP JSV REST Web Service Framework MONO</tags>
+ <language>en-US</language>
+ <copyright>StackExpress.net 2012 and contributors</copyright>
+ <dependencies>
+ <dependency id="StackExpress.Common" />
+ <dependency id="ServiceStack.Redis" />
+ <dependency id="ServiceStack.OrmLite.SqlServer" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="lib\**\*.*" target="lib" />
+ <file src="..\..\src\ServiceStack\**\*.cs" target="src\ServiceStack" />
+ <file src="..\..\src\ServiceStack.ServiceInterface\**\*.cs" target="src\ServiceStack.ServiceInterface" />
+ </files>
+</package>
View
9 build.cmd
@@ -5,4 +5,11 @@ if "%target%" == "" (
set target=UnitTests
)
-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Build\build.msbuild /target:%target% /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
+if "%target%" == "NuGetPack" (
+ if "%BUILD_NUMBER%" == "" (
+ echo BUILD_NUMBER environment variable is not set.
+ exit;
+ )
+)
+
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Build\Build.msbuild /target:%target% /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
View
34 build/Build.tasks
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Go" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <UsingTask TaskName="RegexTransform" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <ParameterGroup>
+ <Items ParameterType="Microsoft.Build.Framework.ITaskItem[]" />
+ </ParameterGroup>
+ <Task>
+ <Using Namespace="System.IO" />
+ <Using Namespace="System.Text.RegularExpressions" />
+ <Using Namespace="Microsoft.Build.Framework" />
+ <Code Type="Fragment" Language="cs">
+ <![CDATA[
+ foreach(ITaskItem item in Items) {
+ string fileName = item.GetMetadata("FullPath");
+ string find = item.GetMetadata("Find");
+ string replaceWith = item.GetMetadata("ReplaceWith");
+
+ if(!File.Exists(fileName)) {
+ Log.LogError(null, null, null, null, 0, 0, 0, 0, String.Format("Could not find version file: {0}", fileName), new object[0]);
+ }
+ string content = File.ReadAllText(fileName);
+ File.WriteAllText(
+ fileName,
+ Regex.Replace(
+ content,
+ find,
+ replaceWith
+ )
+ );
+ }
+ ]]></Code>
+ </Task>
+ </UsingTask>
+</Project>
View
140 build/build.msbuild
@@ -1,8 +1,24 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
+ <Import Project="$(MSBuildProjectDirectory)/Build.tasks" />
+
+ <PropertyGroup>
+ <MajorVersion>3</MajorVersion>
+ <MinorVersion>9</MinorVersion>
+ <PatchVersion>$(BUILD_NUMBER)</PatchVersion>
+ </PropertyGroup>
+
<PropertyGroup>
<BuildSolutionDir>$(MSBuildProjectDirectory)/..</BuildSolutionDir>
+ <SrcDir>$(BuildSolutionDir)/src</SrcDir>
<Configuration Condition="$(Configuration) == ''">Release</Configuration>
<NUnitConsoleArgs>/noshadow</NUnitConsoleArgs>
+ <NuGetPath>$(BuildSolutionDir)/src/.nuget/nuget.exe</NuGetPath>
+ <NuGetPackageDir>$(BuildSolutionDir)/NuGet/</NuGetPackageDir>
+ <NuGetBasePath>$(MSBuildProjectDirectory)</NuGetBasePath>
+ <Version>$(MajorVersion).$(MinorVersion).$(PatchVersion).0</Version>
+ <UnstableTag Condition="$(RELEASE) == ''">-unstable</UnstableTag>
+ <PackageVersion>$(MajorVersion).$(MinorVersion).$(PatchVersion)$(UnstableTag)</PackageVersion>
+ <EnvVersion>$(MajorVersion).$(MinorVersion)$(PatchVersion)</EnvVersion>
</PropertyGroup>
<PropertyGroup>
@@ -11,6 +27,10 @@
</DoBuildSolutionsDependsOn>
</PropertyGroup>
+ <ItemGroup>
+ <NugetPackageFilesToDelete Include="$(NuGetPackageDir)/*.nupkg"/>
+ </ItemGroup>
+
<Target Name="Default" DependsOnTargets="$(DoBuildSolutionsDependsOn)" />
<Target Name="TeamCityBuild">
@@ -37,5 +57,125 @@
Properties="Configuration=$(Configuration)" />
</Target>
+ <Target Name="NuGetPack">
+
+ <!-- Update Version -->
+ <ItemGroup>
+ <RegexTransform Include="$(BuildSolutionDir)/src/**/AssemblyInfo.cs">
+ <Find>\d+\.\d+\.\d+\.\d+</Find>
+ <ReplaceWith>$(Version)</ReplaceWith>
+ </RegexTransform>
+ </ItemGroup>
+
+ <RegexTransform Items="@(RegexTransform)" />
+
+ <Delete Files="@(NugetPackageFilesToDelete)" />
+
+ <ItemGroup>
+ <StackExpressFiles Include="$(SrcDir)/ServiceStack.ServiceInterface/bin/$(Configuration)/ServiceStack.ServiceInterface.*"></StackExpressFiles>
+ <StackExpressFiles Include="$(SrcDir)/ServiceStack.ServiceInterface/bin/$(Configuration)/ServiceStack.dll"></StackExpressFiles>
+ <StackExpressFiles Include="$(SrcDir)/ServiceStack.ServiceInterface/bin/$(Configuration)/ServiceStack.pdb"></StackExpressFiles>
+ <StackExpressFiles Include="$(SrcDir)/ServiceStack.ServiceInterface/bin/$(Configuration)/ServiceStack.xml"></StackExpressFiles>
+
+ <StackExpressRazorFiles Include="$(SrcDir)/ServiceStack.Razor/bin/$(Configuration)/ServiceStack.Razor.*"></StackExpressRazorFiles>
+
+ <StackExpressCommonFiles Include="$(SrcDir)/ServiceStack.Common/bin/$(Configuration)/ServiceStack.Common.*"></StackExpressCommonFiles>
+ <StackExpressCommonFiles Include="$(SrcDir)/ServiceStack.Common/bin/$(Configuration)/ServiceStack.Interfaces.*"></StackExpressCommonFiles>
+
+ <StackExpressMvcFiles Include="$(SrcDir)/ServiceStack.FluentValidation.Mvc3/bin/$(Configuration)/ServiceStack.FluentValidation.Mvc3.*"></StackExpressMvcFiles>
+
+ <StackExpressAuthenticationOpenIdFiles Include="$(SrcDir)/ServiceStack.Authentication.OpenId/bin/$(Configuration)/ServiceStack.Authentication.OpenId.*"></StackExpressAuthenticationOpenIdFiles>
+
+ <StackExpressPluginsProtoBufFiles Include="$(SrcDir)/ServiceStack.Plugins.ProtoBuf/bin/$(Configuration)/ServiceStack.Plugins.ProtoBuf.*"></StackExpressPluginsProtoBufFiles>
+
+ <StackExpressPluginsMsgPackFiles Include="$(SrcDir)/ServiceStack.Plugins.MsgPack/bin/$(Configuration)/ServiceStack.Plugins.MsgPack.*"></StackExpressPluginsMsgPackFiles>
+ <StackExpressPluginsMsgPackFiles Include="$(BuildSolutionDir)/lib/MsgPack.dll"></StackExpressPluginsMsgPackFiles>
+
+ <StackExpressClientSilverlightFiles Include="$(SrcDir)/ServiceStack.Client.Silverlight/bin/$(Configuration)/ServiceStack.Client.Silverlight.*"></StackExpressClientSilverlightFiles>
+ </ItemGroup>
+
+
+ <!-- StackExpress -->
+
+ <MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.ServiceInterface/ServiceStack.ServiceInterface.csproj"
+ Targets="Build"
+ Properties="BuildPackage=true;Version=$(PackageVersion);Configuration=$(Configuration)" />
+
+ <Copy SourceFiles="%(StackExpressFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack/lib/net35" />
+
+ <Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack/stackexpress.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
+ LogStandardErrorAsError="true" />
+
+ <!-- StackExpress.Razor -->
+
+ <MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.Razor/ServiceStack.Razor.csproj"
+ Targets="Build"
+ Properties="BuildPackage=true;Version=$(PackageVersion);Configuration=$(Configuration)" />
+
+ <Copy SourceFiles="%(StackExpressRazorFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Razor/lib/net40" />
+
+ <Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack.Razor/stackexpress.razor.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
+ LogStandardErrorAsError="true" />
+
+ <!-- StackExpress.Common -->
+
+ <MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.Common/ServiceStack.Common.csproj"
+ Targets="Build"
+ Properties="BuildPackage=true;Version=$(PackageVersion);Configuration=$(Configuration)" />
+
+ <Copy SourceFiles="%(StackExpressCommonFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Common/lib/net35" />
+
+ <Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack.Common/stackexpress.common.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
+ LogStandardErrorAsError="true" />
+
+ <!-- StackExpress.Mvc -->
+
+ <MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.FluentValidation.Mvc3/ServiceStack.FluentValidation.Mvc3.csproj"
+ Targets="Build"
+ Properties="BuildPackage=true;Version=$(PackageVersion);Configuration=$(Configuration)" />
+
+ <MakeDir Directories="$(NuGetPackageDir)/ServiceStack.Mvc/lib/net40" Condition="!Exists('$(NuGetPackageDir)/ServiceStack.Mvc/lib/net40')" />
+ <Copy SourceFiles="%(StackExpressMvcFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Mvc/lib/net40" />
+
+ <Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack.Mvc/stackexpress.mvc.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
+ LogStandardErrorAsError="true" />
+
+ <!-- StackExpress.Authentication.OpenId -->
+
+ <MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.Authentication.OpenId/ServiceStack.Authentication.OpenId.csproj"
+ Targets="Build"
+ Properties="BuildPackage=true;Version=$(PackageVersion);Configuration=$(Configuration)" />
+
+ <MakeDir Directories="$(NuGetPackageDir)/ServiceStack.Authentication.OpenId/lib/net35" Condition="!Exists('$(NuGetPackageDir)/ServiceStack.Authentication.OpenId/lib/net35')" />
+ <Copy SourceFiles="%(StackExpressAuthenticationOpenIdFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Authentication.OpenId/lib/net35" />
+
+ <Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack.Authentication.OpenId/stackexpress.authentication.openid.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
+ LogStandardErrorAsError="true" />
+
+ <!-- StackExpress.Plugins.ProtoBuf -->
+
+ <MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.Plugins.ProtoBuf/ServiceStack.Plugins.ProtoBuf.csproj"
+ Targets="Build"
+ Properties="BuildPackage=true;Version=$(PackageVersion);Configuration=$(Configuration)" />
+
+ <MakeDir Directories="$(NuGetPackageDir)/ServiceStack.Plugins.ProtoBuf/lib/net35" Condition="!Exists('$(NuGetPackageDir)/ServiceStack.Plugins.ProtoBuf/lib/net35')" />
+ <Copy SourceFiles="%(StackExpressPluginsProtoBufFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Plugins.ProtoBuf/lib/net35" />
+
+ <Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack.Plugins.ProtoBuf/stackexpress.plugins.protobuf.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
+ LogStandardErrorAsError="true" />
+
+ <!-- StackExpress.Plugins.MsgPack -->
+
+ <MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.Plugins.MsgPack/ServiceStack.Plugins.MsgPack.csproj"
+ Targets="Build"
+ Properties="BuildPackage=true;Version=$(PackageVersion);Configuration=$(Configuration)" />
+
+ <MakeDir Directories="$(NuGetPackageDir)/ServiceStack.Plugins.MsgPack/lib/net40" Condition="!Exists('$(NuGetPackageDir)/ServiceStack.Plugins.MsgPack/lib/net40')" />
+ <Copy SourceFiles="%(StackExpressPluginsMsgPackFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Plugins.MsgPack/lib/net40" />
+
+ <Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack.Plugins.MsgPack/stackexpress.plugins.msgpack.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
+ LogStandardErrorAsError="true" />
+
+ </Target>
</Project>
View
6 src/.nuget/NuGet.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <solution>
+ <add key="disableSourceControlIntegration" value="true" />
+ </solution>
+</configuration>
View
77 src/.nuget/NuGet.targets
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
+ <!-- Windows specific commands -->
+ <NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
+ <PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
+ <PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
+ <!-- We need to launch nuget.exe with the mono command if we're not on windows -->
+ <NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
+ <PackagesConfig>packages.config</PackagesConfig>
+ <PackagesDir>$(SolutionDir)packages</PackagesDir>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <!-- NuGet command -->
+ <NuGetExePath>$(NuGetToolsPath)\nuget.exe</NuGetExePath>
+ <NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
+ <NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
+
+ <PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
+
+ <!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
+ <PackageSources>""</PackageSources>
+
+ <!-- Enable the restore command to run before builds -->
+ <RestorePackages Condition="$(RestorePackages) == ''">false</RestorePackages>
+
+ <!-- Property that enables building a package from a project -->
+ <BuildPackage Condition="$(BuildPackage) == ''">false</BuildPackage>
+
+ <!-- Commands -->
+ <RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source $(PackageSources) -o "$(PackagesDir)"</RestoreCommand>
+ <BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(RestorePackages) == 'true'">
+ RestorePackages;
+ $(BuildDependsOn);
+ </BuildDependsOn>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(BuildPackage) == 'true'">
+ $(BuildDependsOn);
+ BuildPackage;
+ </BuildDependsOn>
+ </PropertyGroup>
+
+ <Target Name="CheckPrerequisites">
+ <!-- Raise an error if we're unable to locate nuget.exe -->
+ <Error Condition="!Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
+ </Target>
+
+ <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(RestoreCommand)"
+ Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
+
+ <Exec Command="$(RestoreCommand)"
+ LogStandardErrorAsError="true"
+ Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
+ </Target>
+
+ <Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(BuildCommand)"
+ Condition=" '$(OS)' != 'Windows_NT' " />
+
+ <Exec Command="$(BuildCommand)"
+ LogStandardErrorAsError="true"
+ Condition=" '$(OS)' == 'Windows_NT' " />
+ </Target>
+</Project>
Please sign in to comment.
Something went wrong with that request. Please try again.