Skip to content

Commit

Permalink
build scripts. Remove refs to all ServiceStack dlls except ServiceSta…
Browse files Browse the repository at this point in the history
…ck.Interfaces.
  • Loading branch information
AnthonyCarl committed Jun 12, 2013
1 parent 51e85d2 commit e57fc24
Show file tree
Hide file tree
Showing 93 changed files with 5,347 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,10 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\RhinoMocks.3.6.1\lib\net\Rhino.Mocks.dll</HintPath>
</Reference>
<Reference Include="ServiceStack.Common, Version=3.9.48.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\ServiceStack.Common.3.9.48\lib\net35\ServiceStack.Common.dll</HintPath>
</Reference>
<Reference Include="ServiceStack.Interfaces, Version=3.9.48.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\ServiceStack.Common.3.9.48\lib\net35\ServiceStack.Interfaces.dll</HintPath>
</Reference>
<Reference Include="ServiceStack.Text, Version=3.9.45.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\ServiceStack.Text.3.9.48\lib\net35\ServiceStack.Text.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="xunit">
<HintPath>..\packages\xunit.1.9.1\lib\net20\xunit.dll</HintPath>
Expand Down
5 changes: 5 additions & 0 deletions ServiceStack.PartialResponse.ServiceModel.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceStack.PartialRespons
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceStack.PartialResponse.ServiceModel.UnitTests", "ServiceStack.PartialResponse.ServiceModel.UnitTests\ServiceStack.PartialResponse.ServiceModel.UnitTests.csproj", "{91BB2518-4192-46B4-8DF1-AA6C2D441755}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{2458E32E-2C80-48B4-BB3C-402B8875BCDA}"
ProjectSection(SolutionItems) = preProject
.nuget\packages.config = .nuget\packages.config
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Linq;
using ServiceStack.Common;

namespace ServiceStack.Plugins.PartialResponse
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
// associated with an assembly.

[assembly: AssemblyTitle("ServiceStack.PartialResponse.ServiceModel")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyDescription("Google Style Partial Responses for ServiceStack.Net")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("Anthony Carl")]
[assembly: AssemblyProduct("ServiceStack.PartialResponse.ServiceModel")]
[assembly: AssemblyCopyright("Copyright © Anthony Carl 2013")]
[assembly: AssemblyTrademark("")]
Expand Down Expand Up @@ -39,4 +39,3 @@

[assembly: AssemblyVersion("1.0.*")]
[assembly: InternalsVisibleTo("ServiceStack.PartialResponse.ServiceModel.UnitTests")]
[assembly: CLSCompliant(true)]
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,10 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="ServiceStack.Common">
<HintPath>..\packages\ServiceStack.Common.3.9.48\lib\net35\ServiceStack.Common.dll</HintPath>
</Reference>
<Reference Include="ServiceStack.Interfaces, Version=3.9.48.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\ServiceStack.Common.3.9.48\lib\net35\ServiceStack.Interfaces.dll</HintPath>
</Reference>
<Reference Include="ServiceStack.Text, Version=3.9.45.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\ServiceStack.Text.3.9.48\lib\net35\ServiceStack.Text.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="Microsoft.CSharp" />
Expand All @@ -64,6 +57,7 @@
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
<None Include="ServiceStack.PartialResponse.ServiceModel.nuspec" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<licenseUrl>https://github.com/AnthonyCarl/ServiceStack.PartialResponse.ServiceModel/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/AnthonyCarl/ServiceStack.PartialResponse.ServiceModel</projectUrl>
<iconUrl>http://www.servicestack.net/logo-100x100.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<copyright>Copyright © Anthony Carl 2013</copyright>
<tags>PartialResponse ServiceStack REST JSON JSV HTML Service</tags>
</metadata>
</package>
1 change: 1 addition & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages\psake.4.2.0.1\tools\psake.cmd
33 changes: 33 additions & 0 deletions default.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Import-Module .\packages\psake.4.2.0.1\tools\psake.psm1

properties {
# $home = $psake.build_script_dir + "/../.."
$configuration = "Release"
$projectBaseName = "ServiceStack.PartialResponse.ServiceModel"
$testProjectBaseName = "$projectBaseName.UnitTests"
$testDll = "$testProjectBaseName\bin\$configuration\$testProjectBaseName.dll"
$sln_file = ".\$projectBaseName.sln"
$framework = "4.0"
$xunitRunner = ".\packages\xunit.runners.1.9.1\tools\xunit.console.clr4.exe"
$nugetOutputDir = ".\ReleasePackages"
}

task Default -depends Pack

task Compile -depends Clean {
msbuild "$sln_file" /p:Configuration=$configuration
}

task Clean {
msbuild "$sln_file" /t:Clean /p:Configuration=$configuration
}

task Test -depends Compile {
.$xunitRunner "$testDll"
}

task Pack -depends Test {
mkdir -p "$nugetOutputDir" -force
nuget pack "$projectBaseName\$projectBaseName.csproj" -Symbols -Properties Configuration=$configuration -OutputDirectory "$nugetOutputDir"
}

Binary file added packages/psake.4.2.0.1/psake.4.2.0.1.nupkg
Binary file not shown.
19 changes: 19 additions & 0 deletions packages/psake.4.2.0.1/psake.4.2.0.1.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>psake</id>
<version>4.2.0.1</version>
<title>psake</title>
<authors>James Kovacs</authors>
<owners>James Kovacs</owners>
<projectUrl>https://github.com/psake/psake</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>psake is a build automation tool written in PowerShell. It avoids the angle-bracket tax associated with executable XML by leveraging the PowerShell syntax in your build scripts. psake has a syntax inspired by rake (aka make in Ruby) and bake (aka make in Boo), but is easier to script because it leverages your existent command-line knowledge. psake is pronounced sake - as in Japanese rice wine. It does NOT rhyme with make, bake, or rake. You can also install with chocolatey (http://nuget.org/List/Packages/chocolatey) and have global psake.</description>
<summary>psake is a build automation tool written in PowerShell</summary>
<releaseNotes />
<copyright />
<language />
<tags>build powershell chocolatey</tags>
<references />
</metadata>
</package>
54 changes: 54 additions & 0 deletions packages/psake.4.2.0.1/tools/README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Welcome to the psake project.
=============================

psake is a build automation tool written in PowerShell. It avoids the angle-bracket tax associated with executable XML by leveraging the PowerShell syntax in your build scripts.
psake has a syntax inspired by rake (aka make in Ruby) and bake (aka make in Boo), but is easier to script because it leverages your existent command-line knowledge.

psake is pronounced sake – as in Japanese rice wine. It does NOT rhyme with make, bake, or rake.

## How to get started:

**Step 1:** Download and extract the project

You will need to "unblock" the zip file before extracting - PowerShell by default does not run files downloaded from the internet.
Just right-click the zip and click on "properties" and click on the "unblock" button.

**Step 2:** CD into the directory where you extracted the project (where the psake.psm1 file is)

> Import-Module .\psake.psm1
If you encounter the following error "Import-Module : ...psake.psm1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.

1. Run PowerShell as administrator
2. Set-ExecutionPolicy RemoteSigned

> Get-Help Invoke-psake -Full
> - this will show you help and examples of how to use psake
**Step 3:** Run some examples

> CD .\examples
>
> Invoke-psake
> - This will execute the "default" task in the "default.ps1"
>
> Invoke-psake .\default.ps1 Clean
> - will execute the single task in the default.ps1 script
## How To Contribute, Collaborate, Communicate

If you'd like to get involved with psake, we have discussion groups over at google: **[psake-dev](http://groups.google.com/group/psake-dev)** **[psake-users](http://groups.google.com/group/psake-users)**

Anyone can fork the main repository and submit patches, as well. And lastly, the [wiki](http://wiki.github.com/psake/psake/) and [issues list](http://github.com/psake/psake/issues) are also open for additions, edits, and discussion.

Also check out the **[psake-contrib](http://github.com/psake/psake-contrib)** project for scripts,modules and functions to help you with a build

## Contributors

Many thanks for contributions to psake are due (in alphabetical order):

* candland
* Staxmanade
* lanwin
* smbecker
* stej
19 changes: 19 additions & 0 deletions packages/psake.4.2.0.1/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
try {
$nugetPath = $env:ChocolateyInstall
$nugetExePath = Join-Path $nuGetPath 'bin'
$packageBatchFileName = Join-Path $nugetExePath "psake.bat"

$psakeDir = (Split-Path -parent $MyInvocation.MyCommand.Definition)
#$path = ($psakeDir | Split-Path | Join-Path -ChildPath 'psake.cmd')
$path = Join-Path $psakeDir 'psake.cmd'
Write-Host "Adding $packageBatchFileName and pointing to $path"
"@echo off
""$path"" %*" | Out-File $packageBatchFileName -encoding ASCII

write-host "PSake is now ready. You can type 'psake' from any command line at any path. Get started by typing 'psake /?'"

Write-ChocolateySuccess 'psake'
} catch {
Write-ChocolateyFailure 'psake' "$($_.Exception.Message)"
throw
}
Loading

0 comments on commit e57fc24

Please sign in to comment.